The Chinese economy was in shambles as it had been devastated by more than three decades of revolution, foreign invasion, and civil war.