JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<p>Date: <input type="text" id="datepicker"/></p>
JavaScript
$(function() {
$( "#datepicker" ).datepicker();
$('#datepicker').datepicker("option", "onSelect", function(){alert('hi')});
});