Wind and solar power in Africa were less than 2% of primary energy consumption in 2019
Source of quotes below:
https://www.powerengineeringint.com/world-regions/africa/fossil-fuels-to-dominate-africas-energy-mix-this-decade-report/
" ... research, published in Nature Energy, from the University of Oxford predicts that total electricity generation across the African continent will double by 2030, with fossil fuels continuing to dominate the energy mix – posing potential risk to global climate change commitments.
“Africa’s electricity demand is set to increase significantly as the continent strives to industrialise and improve the well being of its people, which offers an opportunity to power this economic development through renewables,” says Galina Alova, study lead author and researcher at the Oxford Smith School of Enterprise and the Environment.
... The study predicts that in 2030, fossil fuels will account for two-thirds of all generated electricity across Africa. While an additional 18% of generation is set to come from hydro-energy projects.
... The study further suggests that a decisive move towards renewable energy in Africa would require a significant shock to the current system. This includes large-scale cancellation of fossil fuel plants currently being planned."