JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css">
<div class="demo">

    <p>
        Arrive Date: 
        <input class="tripDate"type="text" id="datepicker_arrive" />
        Depart Date: 
        <input class="tripDate" type="text" id="datepicker_depart" />
    </p>

</div>

JavaScript

$(function() {
    $('.tripDate').datepicker({
        numberOfMonths: 2,
        changeMonth: true,
        dateFormat: 'M d yy',
        onSelect: function(dateText, inst) {
            if($(this).attr("id")==="datepicker_arrive") {
            $('#datepicker_depart').focus();
                $(inst).datepicker("show");
            }
        }
    });
    
});