| title | Custom Active Link |
|---|---|
| toc | false |
This example demonstrates how to make a custom <Link> component to render something different when the link is "active" using the useMatch() and useResolvedPath() hooks.
Open this example on StackBlitz:
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
| title | Custom Active Link |
|---|---|
| toc | false |
This example demonstrates how to make a custom <Link> component to render something different when the link is "active" using the useMatch() and useResolvedPath() hooks.
Open this example on StackBlitz: