This has been going on for years and will continue.
China really really really needs a robust and diverse energy infrastructure. Industry needs huge amounts of energy. AI needs huge amounts of energy. The military needs huge amounts of energy.
Coal is unreliable and dirty. Oil can be blocked at the Straight of Malacca and a few pipelines.
China is also the world’s factory. They own the entire logistics chain for producing renewable generators; from raw materials to final assembly. They have all the infrastructure to not only build solar panels and wind turbines at scale, they’ve scaled up building the machines that build them.