JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$('input')
    .attr('disabled', true)
    .attr('disabled', false)
;