"The most important part of the answer is to remember the reasons for America’s success in the 1950s and 1960s. Government programmes, intended to surpass the Soviet Union in space and weapons systems, galvanised investment in education, research and engineering across a broad range of technologies. This ultimately gave rise to Silicon Valley, where it was infused by a spirit of free inquiry, vigorous competition and a healthy capitalist incentive to make money. It was supercharged by an immigration system that welcomed promising minds from every corner of the planet."
Even as local youth education was bungled, the flow of highly skilled immigrants and top-notch universities for wealthy and/or foreign students, helped maintain the lead.
Just look at the founders, key techies and CEOs - rare to find a WASP.
One key issue for China is that despite laxer immigration policies it is not an inclusive culture, it is very hard for foreigners to snap into a Chinese company. Language being the first obvious block. Environmental problems, free speech add to the mix - but, again, the US is hellbent on destroying those USPs (EPA under threat, ...).