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