Skip to content

Commit

Permalink
exact prop isn't needed in React Router v6
Browse files Browse the repository at this point in the history
Fixes #4728
  • Loading branch information
timdorr committed Aug 14, 2024
1 parent a89f1a6 commit c08cb2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorials/essentials/part-6-performance-normalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ As we've seen before, we can take data from one `useSelector` call, or from prop
As usual, we will add routes for these components in `<App>`:

```tsx title="App.tsx"
<Route exact path="/posts/:postId" component={SinglePostPage} />
<Route exact path="/editPost/:postId" component={EditPostForm} />
<Route path="/posts/:postId" component={SinglePostPage} />
<Route path="/editPost/:postId" component={EditPostForm} />
// highlight-start
<Route exact path="/users" component={UsersList} />
<Route exact path="/users/:userId" component={UserPage} />
<Route path="/users" component={UsersList} />
<Route path="/users/:userId" component={UserPage} />
// highlight-end
<Redirect to="/" />
```
Expand Down

0 comments on commit c08cb2b

Please sign in to comment.