Buckets:
32.9 GB
31,201 files
Updated 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| app | 5 items | ||
| components | 2 items | ||
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 1.23 kB xet | 60134b93 | |
| next.config.js | 181 Bytes xet | 692d2c61 | |
| package.json | 391 Bytes xet | 414f03b2 | |
| tsconfig.json | 596 Bytes xet | 484b8bcf |
activeClassName example
ReactRouter has a convenience property on the Link element to allow an author to set the active className on a link. This example replicates that functionality using Next's own Link component with the new app router.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example active-class-name active-class-name-app
yarn create next-app --example active-class-name active-class-name-app
pnpm create next-app --example active-class-name active-class-name-app
Deploy it to the cloud with Vercel (Documentation).
- Total size
- 32.9 GB
- Files
- 31,201
- Last updated
- Sep 26
- Pre-warmed CDN
- US EU US EU