DOM props and forms
disabled prop
Disables a supported native form control. A disabled input normally cannot be edited or focused and is not included in form submission. It is not a server authorization check.
Formal Syntax & Structure
react syntaxreact
disabled={true}Working Example
Example Snippetreact
export default function App() { return <form><label>Tool<input name='tool' defaultValue='Saw' disabled/></label><button type='button' onClick={e=>console.log(new FormData(e.currentTarget.form).has('tool'))}>Check submission</button></form>; }