What makes you think Xi is a dictator? If your answer is “because that’s the vibe I get from American Government propaganda”, then you should reassess the things you think you know about the world. The truth is that China has a very vibrant and active democracy that is much more responsive to the demands of its people than that of most other nations, and Xi is merely the one currently at the top of that democratic system.
“Developed nation” is a propaganda term designed to make you think that the overexploited nations of the world are on some mythical path that will lead them to a first world quality of life.
This is an apples-to-oranges comparison. Europe is the beneficiary of hundreds of years of imperialism and accumulation and the ongoing system of global unequal exchange, whereas China is a former victim of said imperialism that has pulled themselves out of the muck with their own workers’ labor. China is better off compared to India, which achieved independence not long afterward but has fallen far behind in every single development index because of their failure to overthrow capital.