What gets shipped in around 2-3 years and what’s being done in research looks very promising
Spain, for comparison, took over 20 years to get their coal use down from ~40% but they had much worse renewable options back then and needed to rely on gas a lot.
Much faster than that. Even worldwide, the trend on each of those by itself puts them above 100% of all current global electricity supply by the mid 2030s.
10 years, we could easily anticipate that on top of this, everything has been electrified.
But an important thing to consider is that coal in China also completely fills the typical role of gas for electrical generation (=> dispatchable source). For a somewhat fair comparison it's thus sensible to group coal+gas, and you'll find plenty of wealthy western countries that are similarly overreliant on fossils in that metric (yes gas is less harmful, but nations don't get to pick which fossils are available to them).
But despite this, China is pretty close to EU per capita emission and significantly lower than the US. Cumulative emissions are also much lower than either, despite representing a larger population than both of those combined.