JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<body>
    <div id="date1">
    <input id="date2" type="text" style="position:absolute; top:350px;">
</body>

JavaScript

$('#date1').datepicker();
$('#date2').datepicker();
$('#date2').datepicker('setDate', new Date());
$('#date2').datepicker('destroy');