August 2017
Beginner
374 pages
10h 41m
English
The last step to implement login functionality is actually dispatching the action in the Login component:
import { login } from '../actions'
const mapDispatchToProps = (dispatch, props) => bindActionCreators({ login }, dispatch)
handleSubmit (evt) { evt.preventDefault() this.props.login(this.state.username, this.state.password) this.setState({ message: 'Login ...Read now
Unlock full access