Skip to content

Instantly share code, notes, and snippets.

@kettanaito
Last active April 22, 2018 11:05
Show Gist options
  • Save kettanaito/6a2f8cc7fc94eee911751bccda288d49 to your computer and use it in GitHub Desktop.
Save kettanaito/6a2f8cc7fc94eee911751bccda288d49 to your computer and use it in GitHub Desktop.
React Advanced Form - Registration Form
// 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