Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Login.md 450 B

A login form.

const { reduxForm } = require('redux-form');

const LoginForm = reduxForm({ form: 'login' })(Login);

<LoginForm 
  onSubmit={values => console.log(values)}/>

An error is displayed at the top of the form.

const { reduxForm } = require('redux-form');

const LoginForm = reduxForm({ form: 'login-error' })(Login);

<LoginForm 
      loginError="There was an error"
      onSubmit={values => console.log(values)}/>