You asked:

was hong kong part of china

Yes. Hong Kong is a part of China.
Hong Kong
Hong Kong
Hong Kong

China
China
China