Forty years of continuous growth has transformed China into one of the world’s two largest economies.