Skip to content

Commit

Permalink
Update UsageWithReactRouter.md (#3459)
Browse files Browse the repository at this point in the history
* Update UsageWithReactRouter.md

Without exact the All FilterLink will be always active

* Put the prop on its own line.
  • Loading branch information
ludovicoforace authored and timdorr committed Jun 28, 2019
1 parent beb1fc2 commit ff8fce0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/advanced/UsageWithReactRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ import { NavLink } from 'react-router-dom'

const FilterLink = ({ filter, children }) => (
<NavLink
exact
to={filter === 'SHOW_ALL' ? '/' : `/${filter}`}
activeStyle={{
textDecoration: 'none',
Expand Down

0 comments on commit ff8fce0

Please sign in to comment.