Skip to content

Commit ff8fce0

Browse files
ludovicoforacetimdorr
authored andcommitted
Update UsageWithReactRouter.md (#3459)
* Update UsageWithReactRouter.md Without exact the All FilterLink will be always active * Put the prop on its own line.
1 parent beb1fc2 commit ff8fce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/advanced/UsageWithReactRouter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ import { NavLink } from 'react-router-dom'
144144

145145
const FilterLink = ({ filter, children }) => (
146146
<NavLink
147+
exact
147148
to={filter === 'SHOW_ALL' ? '/' : `/${filter}`}
148149
activeStyle={{
149150
textDecoration: 'none',

0 commit comments

Comments
 (0)