Chinese companies have invested billions of dollars across Africa in recent years , seeking raw materials and markets to fuel China 's economy .