Guest User

Untitled

a guest
Mar 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import {Route, withRouter} from 'react-router-dom'
  2.  
  3. // Bottom of file here. By the way, we are using Redux.
  4.  
  5. const mapStateToProps = state => ({})
  6.  
  7. const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch)
  8.  
  9. export default withRouter(connect( // just wrap the connect()
  10. mapStateToProps,
  11. mapDispatchToProps
  12. )(App))
Add Comment
Please, Sign In to add comment