JSFiddle - React, Tailwind, and code Playground
HTML
<input id="date" type="text">
JavaScript
$( function() {
$("#date").datepicker({constrainInput: true});
});
<input id="date" type="text">
$( function() {
$("#date").datepicker({constrainInput: true});
});