China had everything going for it for couple of decades. Other countries were happy to outsource manufacturing and invest for the sake of access to the the Chinese market and under the assumption that great power conflict with China was very unlikely. None of those things, broadly is true any more.