Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leavesster/vercel-router
https://github.com/leavesster/vercel-router
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leavesster/vercel-router
- Owner: leavesster
- Created: 2023-11-10T10:56:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-10T11:18:48.000Z (about 1 year ago)
- Last Synced: 2024-11-15T09:45:05.267Z (2 months ago)
- Language: TypeScript
- Homepage: https://vercel-router-alpha.vercel.app
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: Custom Active Link
toc: false
---# Custom Link Example
This example demonstrates how to make a custom `` component to render something different when the link is "active" using the `useMatch()` and `useResolvedPath()` hooks.
## Preview
Open this example on [StackBlitz](https://stackblitz.com):
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/remix-run/react-router/tree/main/examples/custom-link?file=src/App.tsx)