When did Texas become Texas?

It became independent from Mexico in 1836, and was a its own country (the Republic of Texas) for nine years. Texas was admitted into the U.S. in 1845.