A lot of goods actually come from Taiwan rather than China. I think we’d be ok.
If China is at war with Taiwan it’s unlikely we’d be getting many products.
Taiwan certainly exports a lot of electronics and electronics chips, as we know controlling a substantial portion of the chip market- though after the pandemic experience companies are trying to diversify.
We are incredibly reliant on China though. 21% of our imports versus 2.6 with Taiwan. And if you consider how much cheap a lot of those products are from China, it has a long reaching influence.
The pandemic illustrated quite well how much medical equipment and pharmaceutical precursors we depend on them for. Even just the packaging materials for a lot of products comes from China- like the vaccine vials.
As energy independence is a hot topic these days- Solar panels are almost exclusively Chinese and Lithium Ion batteries one way or another are dominated by China- either making the batteries themselves or the fact they control over 50% of world lithium and cobalt and nearly 100% of spherical graphite market. This is accomplished by buying up mining rights in poor countries. They also do much of the refining of these elements. They also pretty much dominate the windmill market. There’s very little competition when China can produce items for so much less.
The vast majority of cell phones are made/assembled in China. Manufacturing in general is dominated by China. Many items might be “made in X country” but source components from China. Something like 20% of GM vehicle components come from China.
That said, China’s economy and stability does depend on massive US imports and investment, but I think they are in a much better position to survive without us than us without them.