The setup of China being the world’s workshop is temporary. Chinese leadership is using foreign capital to bootstrap their internal market. They will be self-sufficient in less than a generation.
And, perhaps more importantly, they are using all of the monies to start getting their own foothold in other continents. IOW they are entering their own modern expansionist phase.