JSFiddle - React, Tailwind, and code Playground
HTML
<span>Hello</span>
<select>
<option value="hello">Hello</option>
</select>
JavaScript
$('select').each(function(i, el) {
if ($(el).children().length == 1) {
$(el).css("display", "none"); // Hide it
var optionVal = $(el).children().eq(0).text();
$(el).after($("<span>" + optionVal + "</span>"));
}
});