silverwolf-x/project / examples /active-class-name
32.9 GB
31,201 files
Updated 2 months ago
Name
Size
app
components
.gitignore437 Bytes
xet
README.md1.23 kB
xet
next.config.js181 Bytes
xet
package.json391 Bytes
xet
tsconfig.json596 Bytes
xet
README.md

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

Deploy with Vercel

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

Contributors