Trump is legitimately unstable and so selfish as to try to use the military and provocations - even on US soil he wanted to deploy forces - to win or fulfill his deluded post election craziness.
Just today excerpts came out of Woodward's new book; one revelation is General Milley called up his counterpart in China, kind of roguely, in a Nixon esque attempt to say hey, this guy is freaking crazy let's use bureaucracy to try to maintain status quo and go around any dangerous orders.
China has been way less cautious over the past four or five years, and I do not think Trump being in office is a coincidence.
At the same time, Trump is deeply insecure, and is attached to the idea of military power somehow reflecting his own masculinity. Look at his tweets in response to North Korea's provocations, for instance, and how he made them all about him personally. So I think China was careful not to take action that would cause Trump to feel slighted or emasculated and feel a need for direct military action.
So within that narrow area of military pride and perhaps domestic manufacturing, Trump represented a real threat of retaliation and escalation, but beyond that he was pretty much asleep at the wheel.
At least we know that China calls Trump Trump the nation(china) builder.
https://www.ibtimes.com/why-beijing-may-want-keep-trump-whit...
Even now, we're not out of the woods yet. The west is still dealing with the lingering effects of Trumpism and Covid has balance sheets and attentions. Consolidating power now while nobody in the world will really challenge them. The democrats can't survive a recession on top of the Afghanistan disaster and prolonged Covid. They're not going to really sanction China.