Skip to content

Commit 68415f3

Browse files
committed
Form Validation stat es
1 parent d1cd091 commit 68415f3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/All Assessment/assessment24/FormValidation.jsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
import React from 'react'
1+
import React, { useState } from 'react'
22

33
const FormValidation = () => {
4+
const [name, setName] = useState('');
5+
const [email, setEmail] = useState('');
6+
const [password, setPassword] = useState('');
7+
8+
const handleName = (e) => {
9+
setName(e.target.value)
10+
}
11+
const handleEmail = (e) => {
12+
setName(e.target.value)
13+
}
14+
const handlePassword = (e) => {
15+
setName(e.target.value)
16+
}
417

518
const handleForm = () => {
619
alert("sameer")

0 commit comments

Comments
 (0)