"Taiwan" isn't a country. It's an island controlled by the Republic of China alongside its other holdings. The ROC is a state that has existed since 1912 with continual international diplomatic recognition since then. Other countries switching diplomatic recognition from the ROC to the PRC didn't magically make the ROC vanish.
I really dislike the fact that the media and government in the US refers to the ROC as "Taiwan". It muddies the conversation and I constantly have to explain to people that there are two governments/countries over there, one from 1912 and one from 1949.