Unverified Commit fb551c90 authored by Radu Petre Tarean's avatar Radu Petre Tarean Committed by GitHub

Update 03-linking-and-navigating.mdx (#55907)

I hope this is right, the description said for a link to be active the pathname should match the href, sorry if its wrong
parent 60af1969
...@@ -84,7 +84,7 @@ export function Links() { ...@@ -84,7 +84,7 @@ export function Links() {
<li> <li>
<Link <Link
className={`link ${pathname === '/about' ? 'active' : ''}`} className={`link ${pathname === '/about' ? 'active' : ''}`}
href="/" href="/about"
> >
About About
</Link> </Link>
...@@ -115,7 +115,7 @@ export function Links() { ...@@ -115,7 +115,7 @@ export function Links() {
<li> <li>
<Link <Link
className={`link ${pathname === '/about' ? 'active' : ''}`} className={`link ${pathname === '/about' ? 'active' : ''}`}
href="/" href="/about"
> >
About About
</Link> </Link>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment