JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<form id="user-form"></form>

JavaScript

$.ajax({
    url: '/echo/html/',
    dataType: 'html',
    data: {
        html: '<div><input type="text" name="firstname" id="firstname"></div><div><input type="text" name="email" id="email"></div><div><input type="text" name="birthdate" id="datefield"></div><div><input type="submit"></div>'
    },
    method: 'POST',
    success: function (data) {
        $('#user-form').html(data);
        $("#datefield").datepicker();
    }
});