react18-themes
Version:
Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.
10 lines (9 loc) • 403 B
TypeScript
/**
* need to export server components and client components from separate files as
* directive on top of the file from which component is imported takes effect.
* i.e., server component re-exported from file with "use client" will behave as client component
* */
export * from "./color-switch";
export * from "./force-color-scheme";
export * from "./force-theme";
export * from "./theme-switcher";