-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateAccountForm.js
48 lines (43 loc) · 1.09 KB
/
CreateAccountForm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import React, { useState } from 'react';
const CreateAccountForm = () => {
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [confirmPassword, setConfirmPassword] = useState('');
const handleSubmit = (event) => {
event.preventDefault();
// Validate form data and create account
};
return (
<form onSubmit={handleSubmit}>
<label>
Email:
<input
type="email"
value={email}
onChange={(event) => setEmail(event.target.value)}
/>
</label>
<br />
<label>
Password:
<input
type="password"
value={password}
onChange={(event) => setPassword(event.target.value)}
/>
</label>
<br />
<label>
Confirm Password:
<input
type="password"
value={confirmPassword}
onChange={(event) => setConfirmPassword(event.target.value)}
/>
</label>
<br />
<button type="submit">Create Account</button>
</form>
);
};
export default CreateAccountForm;