JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<input type="text" id="datepicker1"/>

JavaScript

$(function() { 
    $("#datepicker1").datepicker({ dateFormat: 'yy' });
});