JSFiddle - React, Tailwind, and code Playground

HTML

<input id="date" type="text">

JavaScript

$( function() {

    $("#date").datepicker({constrainInput: true});

});