Before his election to the Wyoming House of Representatives, Yin served as vice chair of the
Teton County Democratic Party. Yin ran unopposed for the Democratic nomination and faced
Republican Barbara Allen in the general election. Allen led in a local poll conducted by the
Buckrail media outlet. Analysis from
The Casper Star-Tribune in 2018 found that Yin would likely be the second
Asian American elected to the body, after
Indian-born legislator
Nimi McConigley, who served from 1994 to 1996. Yin won the election, 59.6% to 40.3%. In December 2019, he was part of a group of Asian American legislators who traveled to Japan as part of a program created by the
U.S.-Japan Council and the Sasakawa Peace Foundation. He was reelected in
2020 without opposition, In 2021, Yin cosponsored legislation to introduce a 4% state income tax to fund education. In the
2022 election, he defeated Republican Jim McCollum, 73.8% to 25.9%. In November 2022, he was elected by the Democratic caucus in the House of Representatives to serve as Minority Leader. == Electoral history ==