When the app is updated to react-router@5.0.1 and react-router-dom@5.0.1, the app breaks with the following error:
TypeError: this.context.router is not defined
What should be appropriate way to handle history.push with react-router@5.0.1 and react-router-dom@5.0.1?
When the app is updated to
react-router@5.0.1andreact-router-dom@5.0.1, the app breaks with the following error:TypeError: this.context.router is not definedWhat should be appropriate way to handle
history.pushwithreact-router@5.0.1andreact-router-dom@5.0.1?