China still uses a massive amount of coal, and has a lot of southern idle land. Germany has been doing what you say for the last 15 years, it didn't seem to work out so well.
Germany invested a lot money and still burns coal, imports a lot of natural gas for electricity production, has higher electricty prices then France and higher emmisions then France.
"The energy transition will require considerable added investment. Estimates of the total amount of annual investment vary from 15 to 40 billion euros, or 0.5 to 1.2 percent of Germany’s current gross domestic product (GDP) of around 3,200 billion euros."