Last active
April 22, 2018 11:05
-
-
Save kettanaito/6a2f8cc7fc94eee911751bccda288d49 to your computer and use it in GitHub Desktop.
React Advanced Form - Registration Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/app/RegistrationForm.jsx | |
import React from 'react'; | |
import { Form } from 'react-advanced-form'; | |
import { Input } from '...'; | |
export default class RegistrationForm extends React.Component { | |
render() { | |
return ( | |
<Form> | |
<Input | |
name="userEmail" | |
type="email" | |
required /> | |
<Input | |
name="userPassword" | |
type="password" | |
required /> | |
<Input | |
name="confirmPassword" | |
type="password" | |
required /> | |
<Input | |
name="firstName" /> | |
<Input | |
name="lastName" /> | |
<button>Register</button> | |
</Form> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment