JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css">
<input class="datepicker">

CSS

body {
  font: 12px sans-serif;
}

JavaScript

$(document).ready(function() {
  $(".datepicker").attr("placeholder", "mm-dd-yyyy").change(function(){
  	$(this).datepicker('setDate', $(this).datepicker('getDate'));
  }).datepicker({
      showOn: "button",
      maxDate: "+1",
      showOtherMonths: true
  });
});