Stock market or the economy would be the least of your worries in a war with China. It would be a nuclear war. And because other nuclear powers like Russia would not just sit by and risk their allies get destroyed, they would also join. Which means global thermonuclear war. Including weapons other than nuclear ones which were developed since last 70 years being used.