JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
<label>Enter your name:</label>
<input type="text">
<button id="submit">Submit</button>
</div>
JavaScript
$(document).ready(function() {
$('#container *').prop('disabled', true);
});