The way to deal with China through legislation and working with our allies because it has to be a long term process. Tariffs and photo ops like FoxConn in WI did nothing hinder China.
You can also see that China’s GDP growth (in 2019) was the lowest it’s been since 1990 (2020 will no doubt be much lower), and their reputation around the world is at an all-time low.
It’s also worth noting that the administration did a lot more to stand up to China besides tariffs (but tariffs that force companies to leave will of course hurt them the most).