React Router: activeStyle & activeClassName

Share this video with your friends

Send Tweet

react-router provides two props for setting a specific style on a Link component whose path matches our current route. activeStyle allows for an inline style while activeClassName allows for an class defined in an external stylesheet.