China's rise was due to smart planning and investment in their people and infrastructure. The country went from peasant farmers to the manufacturing hub of the world in a generation. Now they're in the process of becoming a major hub of knowledge workers while keeping a strong manufacturing backbone.
And one thing I rarely see mentioned is that the Chinese government keeps its currency artificially devalued in order to sell their products cheaply and undercut competition. Looking at their economy purely on a GDP basis really underestimates how big their economy is. GDP by PPP is more accurate. If China ever decides to stop loosely pegging its currency and let the value naturally rise, their GDP will very likely swell, since GDP is measured in US dollars.