I think ByteDance is in an unresolvable situation, on one hand they absolutely can't afford losing the China market, that means they have to stay Chinese and loyal to the party; but on the other hand, if they don't sever with China completely, a global ban looks inevitable.
As for the public opinion in China, the majority thinks this is unfair, coz FB, YT and Twitter "wasn't banned, they themselves pulled out coz they don't want to respect Chinese laws".