JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<option>0</option>
</select>
JavaScript
$(function(){
$("select").click(function(){
var $this = $(this);
setTimeout(function(){
if ($this.find("option").length<2){
for (i=1; i<5; i++){
$this.append("<option>Item " + i + "</option>");
}
}
}, 50);
});
});