September 2018
Beginner
156 pages
3h 28m
English
The activeStyle prop is also used to style the selected <NavLink>. However, instead of providing a class to apply when the <NavLink> is selected, the CSS style properties can be provided inline:
<NavLink to="/user" activeStyle={{ background: 'red', color: 'white' }}> User</NavLink>
Read now
Unlock full access