Selling off your natural resources (worth trillions of dollars) to the Chinese for them to send their own contractors to build cheap infrastructure isn't a viable solution to Africa's poverty. It is better than the usual Western approach of looting Africa, but it's still an unequal relationship, which China profits from greatly.
In return for building a railway or a hospital worth a few hundred million, the Chinese get oil, gas, rare metals and raw materials to fuel their industrial growth. They also get to solve their employment problem by shipping all their unemployed skilled young men to Africa to work on projects that Africans themselves should be employed to do. Thereby ensuring that Africans never learn how to catch a fish, but rely on foreign fishermen to catch it for them.