And it is a lesson for Republicans of every stripe across the country.