Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.