0.4.2 • Published 5 years ago
@xkit/form v0.4.2
form
import React from 'react';
import { Form, FormGroup, FormSubmit } from '@xkit/form';
const UserForm = () => {
function handleSubmit(values, { setSubmitting }) {
setSubmitting(false);
}
return (
<Form initialValues={{ name: '' }} onSubmit={handleSubmit}>
<FormGroup name="name" label="Name" />
<FormSubmit />
</Form>
);
};