JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$('input').datepicker({  

    onSelect: function(date) {
        alert(date);
    },
    dateFormat: "M d y"
});