Well, it's even better than that! Those solar farms are also dotted with new wind turbines. China is poised to achieve its 2030 carbon emissions targets by 2025. China consumes 13M bbd of oil but produces only 4M. Most of their coal is imported.
Any doubt who will reach net zero first? Its in their financial interests to decarbonize as rapidly as possible, just as it was in their interests to electrify as quickly as possible in the 2000s to support industrialization. Now, a low-carbon grid is cheaper, more reliable, and less subject to foreign dependancies. Engineers make the decisions in China, not the Courts.