Many African countries are investing in clean energy projects to meet their growing electricity demand, reduce their dependence on fossil fuels, and combat climate change.