JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="datepicker" name="datepic" value="">

JavaScript

$(function() {
        $( "#datepicker" ).datepicker();
    });