Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make components "active" using appropriate props #8

Merged
merged 1 commit into from
Jul 6, 2016

Commits on Jul 6, 2016

  1. 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.)
    gfantom committed Jul 6, 2016
    3 Configuration menu
    Copy the full SHA
    2cf5e56 View commit details
    Browse the repository at this point in the history