Foreign firms learn lessons of Africa’s growth