MCPcopy Create free account
hub / github.com/WebDevSimplified/react-multistep-form / AccountForm

Function AccountForm

src/AccountForm.tsx:12–36  ·  view source on GitHub ↗
({
  email,
  password,
  updateFields,
}: AccountFormProps)

Source from the content-addressed store, hash-verified

10}
11
12export function AccountForm({
13 email,
14 password,
15 updateFields,
16}: AccountFormProps) {
17 return (
18 <FormWrapper title="Account Creation">
19 <label>Email</label>
20 <input
21 autoFocus
22 required
23 type="email"
24 value={email}
25 onChange={e => updateFields({ email: e.target.value })}
26 />
27 <label>Password</label>
28 <input
29 required
30 type="password"
31 value={password}
32 onChange={e => updateFields({ password: e.target.value })}
33 />
34 </FormWrapper>
35 )
36}

Callers

nothing calls this directly

Calls 1

updateFieldsFunction · 0.85

Tested by

no test coverage detected