CCP views religion just like any other technology. It can be useful, as long as it furthers the goals of the Party. Once it stops doing that - or becomes a threat - it's dealt with, and severely in the case of Uyhur Muslims[1].
It's also worth noting that the Catholic Church in China is actually a state sanctioned organization that is not in Communion with the Holy See. There exists an underground Catholic Church that is in Communion with Rome, but, for obvious reasons, it's much smaller.
It's also worth noting that the Catholic Church in China is actually a state sanctioned organization that is not in Communion with the Holy See. There exists an underground Catholic Church that is in Communion with Rome, but, for obvious reasons, it's much smaller.
[1] https://www.nytimes.com/interactive/2019/11/16/world/asia/ch...