JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css">
    <label for="startDate">Date :</label>
    <input name="startDate" id="startDate" class="date-picker" /><br>
<input name="alt" id="alternate" />

CSS

.ui-datepicker-calendar {
    display: none;
    }

JavaScript

$(function() {
    $('.date-picker').datepicker( {
        //altField: "#alternate",
        changeMonth: true,
        changeYear: true,
        showButtonPanel: true,
        dateFormat: 'MM yy',
        onClose: function(dateText, inst) { 
            var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
            var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            $(this).datepicker('setDate', new Date(year, month, 1));
        }
    });
});