Technically, the Republic of China is a country, not Taiwan, used to refer to the free area of the Republic of China consisting of Taiwan Province and parts of Fujian Province.
Legally, the "People's Republic of China" is an illegitimate rebel administration on the sovereign territory of the Republic of China.
But laws aren't always enforceable.