The Chinese jobs and tech is being funded by US wall street. Thanks for the EVs in exchange for paper dollars back!
The situation is very different to petrol cars. Foreign brands and technology occupied the whole Chinese market. Most Chinese brands are struggling for survive. The joint-ventures make about 20% profits, foreign share holders take the most profits. Chinese company have no choice but buy foreign brands' motors, clutches, gearboxes etc. They have no money to develop these technology. Even they have money to do it, it's a huge risk, the foreign firms can reduce price to squeeze their market, finally their investment may have 0 return.
In EV industry, the situation is totally different. The main technologies are battery, control system and electric motor driver. Chinese company have complete industry line. CATL has been one of the top VE battery suppliers in the world, along with many other Chinese battery suppliers. Nio, BYD etc all have their own advanced control system, Huawei even combine control system with 5G technology. About the e- motor driver, a lot of Chinese companies have good technology. Tesla also buy some important parts from Chinese brands. Chinese government invest huge money to build EV infrastructures and purchase a large number of electric bus, taxi, this can guarantee Chinese brands have enough money invested into R&D.
Obviously when you see petrol cars in street, there are mostly foreign brands, but EV are mostly Chinese brands, Tesla actually feel strong competition in China. Tesla don't have absolute advantage.