JSFiddle - React, Tailwind, and code Playground

HTML

<p>Date: <input type="text" id="datepicker" /></p>

JavaScript

$(function() {
    $( "#datepicker" ).datepicker({  maxDate: new Date });
  });