🕹 How to Add Form Validation in React Forms using React Hook Form (Freecodecamp)
AboutCommentsNotes
🕹 How to Add Form Validation in React Forms using React Hook Form (Freecodecamp)
Expand for more info
FormValidation.jsx
run
preview
console
import { Form, Button } from 'semantic-ui-react'

export default function FormValidation() {

return (
<div>
<Form>
<Form.Field>
<label>First Name</label>
<input
placeholder='First Name'
type="text"
/>
</Form.Field>
<Form.Field>
<label>Last Name</label>
<input
placeholder='Last Name'
type="text"
/>
</Form.Field>
<Form.Field>
<label>Email</label>
<input
placeholder='Email'
type="email"
/>
</Form.Field>
<Form.Field>
<label>Password</label>
<input
placeholder='Password'
type="password"
/>
</Form.Field>
<Button type='submit'>Submit</Button>
</Form>
</div>
)

}

Console
/index.html
-7:59