JSFiddle - React, Tailwind, and code Playground

HTML

<select></select>

JavaScript

var s = document.querySelector("select");
  Object.defineProperty(s, "0", { value: new Option});
  alert(s.options.length);