Bugs in Sidebar Menu with React Router V4
问题 I'm developing a single-page ReactJS Web app but I know I'm doing something wrong while defining my routing with React Router V4 . My problem is as follows: PrivateRoute in my routes.js file is not working as expected. That is, I don't know why but my sidebar menu, which is a child component of my main App , does not work properly: there are a few bugs when I click on the menu item of my PrivateRoute component (in this case, Page1 ). When I say bugs, I mean that when I click on the menu item