import React from 'react' import PropTypes from 'prop-types' import Text from './text' class Form extends React.PureComponent { render() { const { children, errorMessage, onSubmit, } = this.props return (
) } } Form.propTypes = { children: PropTypes.any, errorMessage: PropTypes.string, onSubmit: PropTypes.func.isRequired, } export default Form