China free-rode off of that investment by adopting Western technology with no virtually no R&D, greatly benefiting.
The US did an almost similar thing
Not an almost similar thing. Effectively the exact same thing, including the flagrant disregard of IP, etc.It's worth thinking about when discussing what countries "should" and "shouldn't" do, as you note.