JSFiddle - React, Tailwind, and code Playground
HTML
<select onchange="this.style.color = this.options[this.selectedIndex].style.color;">
<option style="color:green">green</option>
<option style="color:red">red</option>
</select>
<select onchange="this.style.color = this.options[this.selectedIndex].style.color;">
<option style="color:green">green</option>
<option style="color:red">red</option>
</select>