Note that Carol's input regarding the 240 hr visa-free option is mostly, but not
completely, correct.
There are specific ports of entry you must use to enter China, and you are limited
to staying in a region defined by that port of entry.
In addition, you need to transit out to a different country than the one you
entered China from. Practically speaking, if you're only going to China, it
means you cannot take non-stop flights from your departure city in both
directions.
The last thing you want is to get all the way there and be denied entry, so you
need to read the rules carefully and bring documents that support the rules.
The second-to-last thing you want is to be denied boarding on your outbound
flight because the airline cannot confirm your plans meet the requirements for
not needing a visa ahead of time. Again, the onus is on the traveler to be
prepared.