3 ms·
This library allows you to create custom directives similar to React's "use client" or "use server". Directives are special string annotations that trigger cust
by ademking 11mo ago
This library allows you to create custom directives similar to React's "use client" or "use server". Directives are special string annotations that trigger custom transformations during the Vite build process.
You could create a "use analytics" directive that automatically injects analytics tracking code into your components, or a "use debug" directive that adds logging functionality. Or even a "use feature-flag" directive that conditionally includes code based on feature flags.
The possibilities are endless!
Just "npm i use-nemo" and create your own directive.
Github: https://github.com/Ademking/use-nemo https://github.com/Ademking/use-nemo