JSFiddle - React, Tailwind, and code Playground
HTML
<input id="datePicker" type="date" />
JavaScript
$(document).ready( function() {
var now = new Date();
var today = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate();
$('#datePicker').val(today);
});