From a $475 million light-rail in Ethiopia to continent-wide energy loans worth $17.6 billion from 2000 to 2014, China has invested heavily in Africa  especially in countries that happen to be resource-rich in particularly important commodities, such as oil and the so-called "rare-earth elements" that have become key components of consumer electronics.