JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text'/>
CSS
.checkin{
color: blue;
}
.reserved{
color: red;
}
.availfor{
color: green;
}
JavaScript
$('input').datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function (date) {
//defined your own method here
alert(date);
}
})