Countries like New Zealand and Peru, unable to depend on developed countries for export demand, signed bilateral free-trade agreements with China. Likewise, when developed countries cut back on their foreign investment, China stepped in to inject much-needed capital into the global economy.