The reason China is ahead is because they took responsibility for their future, by making a dead sentence for corruption cases. This is what has kept them ahead, corruption keeps development. Once you dealt with Corruption you are on the path of progress.
To do with business with china you are 90% sure they will not scam you, they have zero tolerance for corruption, But in Africa where corrupt leaders are celebrated by the citizen, they will always be consumption continent, Africa has all the mineral resources to be independent and united, but corruption is the other of the day in Africa. until Africa deal with the issue of corruption they will remain in poverty, and no one is coming to help out, except Africans.
This may sound very good on paper, but very very risky if corruption is big in a nation. What I mean is "if anyone does corruption and steal peoples money, they will be put to death" is a very big deal, first of all death penalty is not available in most of modern world, the main reason is the risk of being wrong, like what if that person didn't do corruption?
In USA for example, many people died from death penalty, that turned out to be innocent. So it's a very risky situation, you have to have a concrete proof, like video or whatever. Let's assume that Chinese has this, and some big party member comes up and says "this party member is corrupt and does corruption, lets kill him" and they do, what if he was innocent? That's a big risk, and that's why it doesn't happen in other nations.