JSFiddle - React, Tailwind, and code Playground
HTML
<button id="mybutton">Hello</button>
<input type="text" style="display: none">
JavaScript
$(document).ready(function() {
$('input').datepicker();
$('#mybutton').click(function() {
$('input').show().focus().hide();
});
});