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 it now with Vercel or preview on StackBlitz:
Execute nulla create with npm:
npx nulla create --example active-class-name active-class-name-app