JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript">
function populateList() {
alert("Test");
}
</script>

<select onchange="populateList();">
    <option>1</option>
    <option>2</option>
</select>