JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function test(){
alert('onchange success');
}
</script>
<select id="mySelect" onchange="test();">
<option selected=''>0</option><option selected='selected'>1</option><option selected=''>2</option></select>