Skip to content

Latest commit

 

History

History

active-class-name

Folders and files

README.md

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.