I disagree with the article. Apple sources what component from China? The PCB? The case? It is well known most the value inside their phones isn't sourced from China at all. If you want to thank someone thank the Chinese players like Huawei, Oppo, or Xiaomi.
With regards to Tesla I think the Chinese government allowed the investment for two reasons. One is to show to US industrialists that China's market is open to them too unlike what Trump says and the other reason is to increase the market share of electric vehicles to reduce the pollution in China's main cities. Chinese manufacturers by now have had years to prepare for this so I think they can survive the entrance of a player like Tesla perfectly fine.
What is Apple outsourced to China?
Yes, the PCB, the case, the metal frame that makes up the phone; the OLED screen which is by a Chinese maker (forgot the name but its the same brand Huawei and other Chinese smartphone users use---also used with iPhone SE). The battery may or is already from China.