Skip to content

Commit c08cb2b

Browse files
committed
exact prop isn't needed in React Router v6
Fixes #4728
1 parent a89f1a6 commit c08cb2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorials/essentials/part-6-performance-normalization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ As we've seen before, we can take data from one `useSelector` call, or from prop
137137
As usual, we will add routes for these components in `<App>`:
138138

139139
```tsx title="App.tsx"
140-
<Route exact path="/posts/:postId" component={SinglePostPage} />
141-
<Route exact path="/editPost/:postId" component={EditPostForm} />
140+
<Route path="/posts/:postId" component={SinglePostPage} />
141+
<Route path="/editPost/:postId" component={EditPostForm} />
142142
// highlight-start
143-
<Route exact path="/users" component={UsersList} />
144-
<Route exact path="/users/:userId" component={UserPage} />
143+
<Route path="/users" component={UsersList} />
144+
<Route path="/users/:userId" component={UserPage} />
145145
// highlight-end
146146
<Redirect to="/" />
147147
```

0 commit comments

Comments
 (0)