Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumReactReact Router v6Single-choice MCQ

You render `<NavLink to="/inbox" className={({ isActive }) => isActive ? 'on' : 'off'}>`. The user is at `/inbox/messages/42`. By default (no `end` prop), does this NavLink get the active class, and why?

<NavLink to="/inbox" className={({ isActive }) => (isActive ? 'on' : 'off')} > Inbox </NavLink> // current URL: /inbox/messages/42