JSFiddle - React, Tailwind, and code Playground

HTML

<input type="date" id="test" />

JavaScript

$("input[type=date]").each(function() {
    if  (this.type != 'date' ) $(this).datepicker();
});