Mr. Trump has certainly taught the rest of the world...
...to be wary of supposedly stable governments.
I expect that China sees Trump's tariff war accompanied by his shifting and illogical negotiating tactics as a clear sign: China must not count on international suppliers for government-essential hardware or software. Communist China's history includes considerable opposition from Western democracies; China's government may be paranoid, but it is to some degree reasonable paranoia.
So, on the face of it, moving away from foreign technology is not stupid. The US and UK concern with Huawei is (mostly) the same shoe, just on the other foot. (There is the subject of technology theft too.) But if Windows was a Chinese product, the US military and intelligence agencies would be foolish to use it. (Yes, US military and intelligence agencies use some Linux systems, but I believe that the majority of general-purpose office PCs are Windows.)
As others mentioned, the snotty part is using a top-down mandate to rebuild a hardware-software ecosystem. I doubt that the top leaders in the Chinese government are any more tech-smart than the average US congressperson. Senator Wyden excepted.
I expect the process will be harder and take much longer than the leaders of the PRC imagine.