Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {Route, withRouter} from 'react-router-dom'
- // Bottom of file here. By the way, we are using Redux.
- const mapStateToProps = state => ({})
- const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch)
- export default withRouter(connect( // just wrap the connect()
- mapStateToProps,
- mapDispatchToProps
- )(App))
Add Comment
Please, Sign In to add comment