Create a gist now

Instantly share code, notes, and snippets.

@KTruong008 /.js
Last active Sep 23, 2017

What would you like to do?
import React from 'react';
import { Field } from 'redux-form';
export const FormComponent = ({ handleSubmit, onSubmit }) => {
return (
<div>
<h1>My Very own Form</h1>
<form onSubmit={handleSubmit(onSubmit)}>
<Field
name="firstName"
component="input"
/>
<button type="submit">Submit</button>
</form>
</div>
);
}
export default FormComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment