Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Customize Styles for Partially Matched URLs With Gatsby’s Link Component


    When viewing pages that partially match the to prop in a Gatsby Link component, it’s often desirable to show that page as “active”, such as when viewing an anchor link to a heading on the page, or showing the “blog” link as active when viewing /blog/my-great-post/. This video will show you how to pass a function to getProps and identify partial matches using the isPartiallyCurrent prop.