JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" size="10" value="" id="datepicker1"/>
<input type="text" size="10" value="" id="datepicker1"/>
JavaScript
$(function() {
$("#datepicker1").datepicker({
dateFormat: "yy-mm-dd"
}).datepicker("setDate", "0");
});