Who the colonizer was also made a big difference.
France in particular left basket cases.
That’s true; Britain was generally a better colonizer than France, Holland, Portugal, or Belgium. This was probably because they set up the colonized people within the administration, rather than just using Europeans to administer them; when they left, the newly-free people had a better idea as to how to operate.