The conflict eventually resulted in two de facto states , the Republic of China (ROC) in Taiwan and the People's Republic of China (PRC) in mainland China , both claiming to be the legitimate government of China.