JSFiddle - React, Tailwind, and code Playground
HTML
<input type="date" class="date" />
JavaScript
$(function () {
$('.date').on('change', function () {
var new_val = $(this).val().split('-');
alert('Year: '+ new_val[0] +' Month: '+ new_val[1] +' Day: '+ new_val[2] );
});
});