That we're banning TikTok, but not Chinese-manufactured chips and electronics and whatnot, indicates it's a heavily political play.
Banning TikTok was only a "heavily political play" because there are strong political forces in place preventing any action from being taken against China. Anything which is able to overcome those forces is bound to be "heavily political". That doesn't necessarily mean the action was the wrong thing to do.