JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
 
 <p>Date: <input type="text" id="datepicker"></p>

JavaScript

$( function() {
    $( "#datepicker" ).datepicker();
  } );
  
$('#datepicker').datepicker({
    dateFormat: 'dd M yy',
    onSelect: function(dateText){
         // write your logic here 
        }
});