DOM props and forms
required prop
Requests native constraint validation for a supported field. Normal submission can be blocked if a required value is missing. Always validate again at the server trust boundary.
Formal Syntax & Structure
react syntaxreact
required={true}Working Example
Example Snippetreact
export default function App() { return <form onSubmit={e=>e.preventDefault()}><label>Tool<input name='tool' required/></label><button>Check</button></form>; }