Last active
December 7, 2017 05:40
-
-
Save kaievns/04be36aacebc7ce582e53362c8c63d63 to your computer and use it in GitHub Desktop.
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
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