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="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>



<input type="hidden" id="datepicker">

JavaScript

$(function() {
    $( "#datepicker" ).datepicker({
      showOn: "button", 
        buttonImage: "        http://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
      buttonImageOnly: true
    });
  
    $( "#datepicker" ).datepicker( "option", "dateFormat", "yy-mm-dd");

  });