You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No need for ternaries, you can use the props "activeClassName" and "onlyActiveOnIndex" which will work accordingly.
Source: https://github.com/reactjs/react-router-tutorial/tree/master/lessons/09-index-links
(I know this probably won't get committed, b/c then you'd have to do a whole new video. However, if you do commit, you could comment out the old version so that people won't be completely lost when they DL the source code.)
0 commit comments