Are you asking about the NPC specifically? Deputies are elected using a bottom-up approach starting at the local level. The bottom level deputies then elect the next level above them, and so on.
I haven't read it myself, but here's an essay titled China’s democracy: how the National People’s Congress works from trusted source Friends of Socialist China.