Skip to content

Instantly share code, notes, and snippets.

@copperwall
Created March 30, 2019 17:29
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 copperwall/6a605253d3dde9e3850316132b38ad50 to your computer and use it in GitHub Desktop.
Save copperwall/6a605253d3dde9e3850316132b38ad50 to your computer and use it in GitHub Desktop.
Form.Component = ({ id, name, onSubmit, children }) => (
<form
id={id}
name={name}
onSubmit={onSubmit}
>
{children}
</form>
);
Form.Component.propTypes = {
id: PropTypes.string,
name: PropTypes.string,
onSubmit: PropTypes.func,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment