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.
The Republic of Texas is still a free nation, it has its own set of laws, but pretends to live under US command to have protection from their nemisis, border hopping Mexicans. They have been at war...