I am getting this error on button click in homePage.jsx
TypeError: Cannot read property 'push' of undefined
Below is my app.js / homePage.jsx Code
Please suggest
App.js
render() {
return (
<div>
<NavBar />
<span>
<Router history={browserHistory}>
<Switch>
<Route exact path="/" component={HomePage} />
<Route path="/contentwrapper" component={Contentwrapper} />
</Switch>
</Router>
</span>…
Top comments (0)