Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube: prevent update block by using the withRouter helper
/* just add this import */
import {Route, Switch, withRouter} from 'react-router-dom';
/* and update the default export */
export default withRouter(connect(null, mapDispatchToProps)(App));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.