Texas became the Republic of Texas after it won it's independence from Mexico in 1836. Texas became a state after it's annexation to the United States in 1845.
Texas was a republic after Texas gained it's Independence from Mexico in 1836, after the revolution, San Jacinto, The Alamo, Goliad, etc. The Republic of Texas gained annexation to the United States...