Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make components "active" using appropriate props
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.)
- Loading branch information
2cf5e56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change doesn't work for me... I need to revert to get the active tab settings to work properly....
2cf5e56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work for me as well...
2cf5e56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Does not work.