Skip to content

Commit abbcf56

Browse files
authored
Minor doc change: fixing active styling example (#8222)
1 parent 74bf0eb commit abbcf56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/upgrading/v5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ As of `v6.0.0-beta.3`, the `activeClassName` and `activeStyle` props have been r
761761
to="/messages"
762762
- style={{ color: 'blue' }}
763763
- activeStyle={{ color: 'green' }}
764-
+ style={({ isActive }) => ({ color: isActive ? 'green' : 'blue })}
764+
+ style={({ isActive }) => ({ color: isActive ? 'green' : 'blue' })}
765765
>
766766
Messages
767767
</NavLink>

0 commit comments

Comments
 (0)