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