get the active component react navlink code example Example: navlink <NavLink to="/about">About</NavLink>