AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
669 stars 30 forks source link

Active class question #59

Closed ymatuhin closed 3 years ago

ymatuhin commented 3 years ago

Is there any benefits of using use:active active-class="myactive" instead of use:active="myactive"? Maybe it will be ok to completely remove active-class attribute. Nice router btw, gonna try it on.

https://svelte.dev/docs#use_action

AlexxNB commented 3 years ago

We have other relative attribute - exact. Because why the active-class is also attribute. I like neither of:

ymatuhin commented 3 years ago

Fair enough, thanks 👍