IIRC China didn't exactly outright ban it, they just said you're not allowed to use subsidized electricity for mining, and also wanted to end the china fud (before the ban, everyone was saying how Bitcoin is controlled by china cause they have most of the hashpower).
I know a large number of miners operating in china today, one of them told me they estimate that 15-20% of the current global hashrate is china.