Almost a hundred years ago an electronics market sprung up in New York City, and electronics manufacturing factories in the city and suburbs. I think it was Robert Moses who decided to raze Radio Row to build WTC. After the war, our electronics industry was mostly driven by the government's war on communism. When consumer electronics innovation picked up again, US companies were already looking to buy from or build in Asia (Japanese CB radios) or Asians were already here doing business themselves (Sony Walkman).
The reality is that U.S. Corporate taxes are too high, the EPA often acts like the Gestapo, state and local permitting makes filing papers in India seem like ordering from Uber.
Don't misinterpret, I am not hating the EPA, however their obsession over CO2 is killing US industry. Taxes are killing growth and NIMBY politics has pushed the factories across the oceans and over the border. Obamacare is also a large disincentive to business.
You may agree with the above things, however when you can't even convince people to buy a useful app for $1.99, you certainly cannot convince consumers to pay hundreds of dollars more for electronics to have US manufacturing.
Yes, making electronics in the US would cost more, but you'd be surprised at what "cost" is most important to corporations when making those kinds of decisions. Depending what is being built, time to market & location of profit/revenue can be more critical than labor cost. At this point, Chinese wages in the first mover cities of Shenzhen/Guangzhou and Shanghai/Hangzhou/Kunshan have increased to the point of being noncompetitive with other regional options (Malaysia, Vietnam, Bangladesh), but because the Chinese domestic market is so huge, many companies are just relocating to cheaper places like Dalian, Fujian or Chengdu. Having the entire supply chain in one country is hugely compelling.
Factory labor in the US, even in high skill, high tech manufacturing, is still typically <$15/hr, with starting pay closer to $10/hr in many places. It doesn't make a bit of sense to build things like mops & brooms here, nor does it make sense to build extremely low margin electronics (like many consumer goods), but the manufacturing economy in the US is actually thriving now. It just happens that it's lately been high margin, complex stuff, military equipment, and a few other select types of goods.
US corporate taxes are too high, but the EPA isn't strong enough (in my backyard, just look at how Duke Energy got away with throwing coal ash into a local river for yeeaaaarrs). Most electronics factories produce nearly 0 CO2 emissions anyway. That's mostly limited to heavy industry & raw materials refining. State governments make stupid decisions, too, like offering short term tax breaks for companies to invest in factories there, but with no consideration for what happens when the company leaves immediately after the tax incentives disappear. Again in my backyard (North Carolina), we lead the nation in solar farm investment in 2014 ... but it was 80% due to tax incentives and 20% due to Apple & Google building data centers here.
I don't think the problem is NIMBY politics in most cases. The problem is short sighted politicians and greedy consumers.