Buckets:
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).
Xet Storage Details
- Size:
- 1.23 kB
- Xet hash:
- 60134b93f1c1c1cb8465f824266076ead459c11a1586fbf84106341e2096fc72
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.