React Router 4 and exact path with dynamic param
问题 I have issues with component being displayed on every single path because React Router 4 isn't using exact for that route (or so it appears). <Route path="/" exact component={Explore} /> <Route path="/about" component={About} /> // The one making problems <Route path="/:username" exact={true} render={props => <Profile {...props} />} /> So when I go to http://example.com/about, my Profile component is still being rendered. I guess the problem is in the route as it expects param :username and