JSFiddle - React, Tailwind, and code Playground
HTML
<input type="date" id="test" />
JavaScript
$("input[type=date]").each(function() {
if (this.type != 'date' ) $(this).datepicker();
});
<input type="date" id="test" />
$("input[type=date]").each(function() {
if (this.type != 'date' ) $(this).datepicker();
});