Yeh nah, didn't look too far, but here is a couple of references to help settle the differences...
https://en.wikipedia.org/wiki/Taiwan
https://www.bbc.com/news/world-asia-34729538
0.
“Going back to the beginning - the first known settlers in Taiwan were Austronesian tribal people, who are thought to have come from modern day southern China.”
= chinese aborigines (who came from china before china was China.
1.
“The island seems to have first appeared in Chinese records in AD239, when an emperor sent an expeditionary force to explore the area - something Beijing uses to back its territorial claim. “
= poms dutch french discovery/invasion/annexation/genocidal war (pick your word) of terra nullius.
2.
So who has had Taiwan...
China 0239-1624
Dutch 1624-1661
China 1661-1895
Japan 1895-1945
China 1945-1949 including civil war
Republic of China (minus the People’s) 1949-Present