JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
   <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>

<input type="text" id="textbox1"></input>
<input type="text" id="textbox2"></input>

JavaScript

$(function () {
            $("#textbox1").datepicker({
                changeMonth: true,
                changeYear: true,
                onSelect: function(selected) {
                      $("#textbox2").datepicker("option","minDate", selected)
                }
            });
             $("#textbox2").datepicker({
                changeMonth: true,
                changeYear: true,
                onSelect: function(selected) {
                      $("#textbox1").datepicker("option","maxDate", selected)
                }
            });
});