JSFiddle - React, Tailwind, and code Playground
JavaScript
if ($('<option>').val(1).val() != 1) {
window.alert('Setting option values with .val is broken');
}
if ($('<option>').attr('value', 1).val() != 1) {
window.alert('Setting option values with .attr is broken');
}