JSFiddle - React, Tailwind, and code Playground
HTML
<form id="someform">
<select id="year"></select>
</form>
JavaScript
var myselect = document.getElementById("year"),
startYear = new Date().getFullYear()
count = 5;
(function(select, val, count) {
do {
select.add(new Option(val++, count--), null);
} while (count);
})(myselect, startYear, count);