How to use react-router-redux routeActions?
I'm trying to modify the example code of react-router-redux. https://github.com/rackt/react-router-redux/blob/master/examples/basic/components/Home.js this is my Home.js class Home extends Component { onSubmit(props) { this.props.routeActions.push('/foo'); } } I also have a mapDispatchToProps for it. function mapDispatchToProps(dispatch){ return bindActionCreators({ routeActions },dispatch); } When i called onSubmit function, I got an error Uncaught TypeError: this.props.routeActions.push is not a function If i remove this.props in onSubmit, the key in the URL changed but its still on the same