China has a short-stay visa-exemption policy for multiple nationalities at select ports of entry. This is pretty much a 3 day transit visa in most cases. I’d recommend getting a tourist visa if you don’t wanna be limited on your movement around China, it’s very trivial to obtain one. I’ve entered China countless times leaving from Thailand.