Did you get your info from Ben Shapiro ? Cos that's bs lol.
My family and I visited Beijing, Shanghai, Xi'an, Chengdu, and Guilin. And it was one of the best experiences I've ever had. I never felt threatened. Customs were great. Had no issues getting in the country. Almost every person who came up to us , Asked where we were from. Offered to buy us food & drinks. Offered to be our tour guides and show us around for free lol.
We did encounter some inquisitive kids trying to scratch the brown off of my arm

our translator who is my wife's work colleague and good friend said the kids were wondering if it was dirt, Or if we live on the sun?

It was explained to us that these kids came from rural towns and had never seen a brown person. Then they apologised , Bowed and thanked us for the convo.
Compare that to our American trip(Texas) i was held & interrogated for 14 hours at the airport. Before being allowed to enter the country.
We had a few encounters with locals - I was called a Spic, Terrorist , Arab, word that rhymes with wigga. Told to go back to Mexico, Iran , Iraq , Even Africa!???? Wtf lol. Even though I told them I was indigenous to New Zealand and a Samoan. I got the, Same same from most of them.
It's not nice being a darker skin colour in America. Cut our 3 week trip into a 10 day stay. Come home early.