I have two routes in App.js
<Switch>
<MainRoute exact={true} path="/" component={Main} />
<Route path="/login" component={Login} />
</Switch>
In Main component I have:
<div><Link to="/reviews" /></div>
<div style={{ height: '1000px' }}>
{/* Routes */}
<Switch>
<Route path="/reviews" component={Reviews} />
</Switch>
</div>
The login and Main route work properly and link is displayed. But after clicking on the link, the page becomes blank.
PS: I am a newbie in React.