Skip to content

Instantly share code, notes, and snippets.

@kaievns
Last active December 7, 2017 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaievns/04be36aacebc7ce582e53362c8c63d63 to your computer and use it in GitHub Desktop.
Save kaievns/04be36aacebc7ce582e53362c8c63d63 to your computer and use it in GitHub Desktop.
import { Form, TextInput, PasswordInput } from 'a-plus-forms';
const signIn = ({ username, password }) =>
axios.post('/users', { username, password });
<Form onSubmit={signIn}>
<TextInput name="username" label="Username" />
<PasswordInput name="password" label="Password" />
<button type="submit">Sign In</button>
</Form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment