Skip to content

Commit

Permalink
Form Validations
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerLevel9000 committed Aug 14, 2023
1 parent 5386c7a commit 06477a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/features/about-me/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const Contact = () => {
type="text"
value={name}
name="Name"
required
minLength={3}
maxLength={120}
onChange={(e) => setName(e.target.value)}
className="form-control"
id="name"
Expand All @@ -104,6 +107,9 @@ const Contact = () => {
onChange={(e) => setEmail(e.target.value)}
className="form-control"
name="Email"
required
minLength={3}
maxLength={120}
id="email"
placeholder="name@example.com"
/>
Expand All @@ -120,6 +126,9 @@ const Contact = () => {
id="message"
rows="3"
name="Message"
required
minLength={30}
maxLength={120}
placeholder="I love coding on the beach..."
/>
{/* <div className="error">{messageError}</div> */}
Expand Down

0 comments on commit 06477a5

Please sign in to comment.