It would be hard for me personally to trust the medical and school system with my child in China.
If you are rich enough I'm sure there are private alternatives, but you still live in a totalitarian country where especially as a foreigner you can get on the wrong end of the argument quickly.
For single young person I would recommend going, but its not the best place for foreigner families, unless you are either very rich or very connected to higher ups.