Correction, China provided corporate America a way to bypass living wages, healthcare, environmental rules, safety rules, local taxes (like school taxes), labor laws, etc. while having a structured authoritarian society that makes excellent factory workers which is why they are not easily replaced by other countries on lower prices alone, a new gilded age out of sight and out of mind as long as Americans got their "cheap prices".
.
This right here is maybe the best short paragraph I've read on the issue of "why are we losing our factories overseas".
Ironically EVERYBODY is going to "lose" in the end to the machines Automation is coming for them as much as for us.
Our society that values hard work so much is going to have a real hard time in the years ahead, with automation, 3d printers etc putting most of us out of work (short of some Dune-like proscription on automation, which would be the ultimate in government meddling!)