Skip to content

Files

Latest commit

e6a09d8 · Jul 21, 2023

History

History
20 lines (12 loc) · 1.11 KB

File metadata and controls

20 lines (12 loc) · 1.11 KB

activeClassName example

Nullstack Context's Router object bring info about the current route. This example compares the router.path with a link's href to dinamically set a active class on it.

Deploy your own

Deploy it now with Vercel or preview on StackBlitz:

Deploy with Vercel Open in StackBlitz

How to use

Execute nulla create with npm:

npx nulla create --example active-class-name active-class-name-app

Then deploy it with Vercel, Heroku or Netlify.