JSFiddle - React, Tailwind, and code Playground

HTML

<div class="demo">

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

</div>

JavaScript

$(function() {
        $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });