import React, { PropTypes } from 'react'; function SignupForm(props) { const { fields: { username, email, password, confirmPassword }, handleSubmit } = props; return (
); } SignupForm.propTypes = { fields: PropTypes.shape({ username: PropTypes.string.isRequired, email: PropTypes.string.isRequired, password: PropTypes.string.isRequired, confirmPassword: PropTypes.string.isRequired }).isRequired, handleSubmit: PropTypes.func.isRequired, signUpUser: PropTypes.func.isRequired }; export default SignupForm;