Despite a downturn in such investments over the past year, China still surpassed the US to become the world’s primary recipient of foreign direct investment.