China has become the world's largest producer and exporter of renewable energy systems and electric vehicles, leveraging these sectors to offset economic weakness in the troubled real estate market and maintain growth.