Skip to content

Instantly share code, notes, and snippets.

@joaovitorzv
Last active April 25, 2020 02:18
Show Gist options
  • Save joaovitorzv/cb0170921332a691b787f0d8bbb07e14 to your computer and use it in GitHub Desktop.
Save joaovitorzv/cb0170921332a691b787f0d8bbb07e14 to your computer and use it in GitHub Desktop.
{({ handleSubmit, handleChange, values, touched, isSubmitting, errors, handleBlur }) => (
<form onSubmit={handleSubmit}>
<input
name="name"
onChange={handleChange}
value={values.name}
type="text"
placeholder="Full name"
/>
<input
name="email"
onChange={handleChange}
value={values.email}
type="text"
placeholder="Email"
/>
<input
name="password"
onChange={handleChange}
value={values.password}
type="password"
placeholder="Password"
/>
<input
name="confirm_password"
onChange={handleChange}
value={values.confirm_password}
type="password"
placeholder="Confirm password"
/>
<button type="submit">
Create account
</button>
</form>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment