Speaking from firsthand experience, if you want to have anything with a circuit in it prototyped, picking a Shenzhen area factory to work with has many advantages. You can have new circuit boards printed and tested within a day. This kind of ecosystem may be hard to replicate elsewhere.
On the other hand, for many other physical products proximity to the end customer is becoming the primary concern. Consider that as real wages in China are increasing, you’re looking at a 20-30% wage increase over the last 4-5 years in China. This means that any cost advantage over other countries is rapidly closing. Chinese raw materials and electricity are no cheaper than in the rest of the world. Due to new factors like increasingly stringent environmental regulations, many of these other inputs are increasing in cost. (http://www.scmp.com/news/china/economy/article/2058175/chine...)
If I want to have a plastics part mass produced, there are a number of regions in the US where there is near-parity with China when you factor in shipping costs, insurance, tariffs, the costs of delays and defects etc.
For industries like textiles, there’s already been significant flight to India and Southeast Asia.
And Chinese brands like Li-Ning grabs all other markets.
The vast majority of software are written a) in house b) outside of SV c) in Java and C#
It doesn't even require any human experts to run, so why does it matter where the experts live?
For now, there is at least an initial "activation energy" hump to get over in terms of training people to assemble shoes. A sneaker or dress shoe may seem simple, but there are hundreds of individual stitches that are essential for a quality product. If you're interested, look into the story of American Giant. To make clothes in North Carolina, they had to implement extensive training for the entire supply chain for their clothing.
Some simpler footwear products are actually already made in the U.S. The custom orthotics for my running shoes were measured for and made in the U.S.
China is similarly dominant for manufacturing. It's no longer about cost, it's about the concentration of expertise and cross-fertilization that results. Because of automation nobody will ever have the cost advantage that gave China its current dominance so China will remain the hub for the foreseeable future.