JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
Name: <input id="abc" class="form-control input">
<p>Click the button to disable the text field.</p>
<button onclick="myFunction()">Disable Text field</button>
<script>
function myFunction() {
document.getElementById("abc").disabled = true;
}
</script>
</body>
</html>