JSFiddle - React, Tailwind, and code Playground
HTML
<form action="demo_form.asp">
<form:input type="text" name="first_name" value="" id="freeform_first_name"
maxlength="150">
</form:input>
JavaScript
$(function(){
$("input").prop('required',true);
});