You can't view Africa with such broad strokes. A West African country with British administrative norms like Nigeria is going to have entirely different outcomes compared to a former Portuguese colony impacted by the Colonial Wars like Mozambique.
Reality is, plenty of African countries do have the right building blocks, and are seeing a significant amount of capital investment from the Gulf States, China, and India because their investors understand how to operate in similar conditions from 10-30 years ago.
Whenever an African country like Nigeria or Kenya does something good, it's positive attributes as masked as part of "Africa" so Western donor organizations can continue to justify spending in basket cases like Rwanda or Mozambique, which is what this article itself is doing.
The Mini-Grid project in the article is a program that private and public sector players in Nigeria worked on, and only succeeded because of Nigeria's administrative apparatus and 10 years of hard work (started back in 2015-16).
The only learning this provides is that
1. You need a relatively competent bureaucratic system in order to actually execute on initiatives
2. You need to have a robust domestic private sector that works closely with the public sector and foreign investors
3. This can only be done through a profit motivation, not a local or international non-profit boondoggle, as that's the only way to unlock the economies of scale needed and incentivize execution