JSFiddle - React, Tailwind, and code Playground
HTML
<div class="public-holiday-date-pick"></div>
JavaScript
var today = new Date();
var lastDate = new Date(today.getFullYear() +1, 11, 31);
$(function() {
$('.public-holiday-date-pick').datepicker({
minDate: '0',
yearRange: '-0:+1',
maxDate: lastDate,
hideIfNoPrevNext: true
});
});