You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manually setup heroUI with my Nextjs 15, and followed all the steps mentioned there. There they mentioned that you need to wrap your root component in providers.tsx and use "use client" directive there, I did the same but still I have to use "use client" every where I have to use any heroUI component. Below is my code:
/app/layout.tsx
`import { Providers } from "./providers";
{children}
`
/app/providers.tsx
`
"use client";
import { HeroUIProvider } from "@heroui/react";
export function Providers({ children }: { children: React.ReactNode }) {
return {children};
}
`
The text was updated successfully, but these errors were encountered:
I manually setup heroUI with my Nextjs 15, and followed all the steps mentioned there. There they mentioned that you need to wrap your root component in providers.tsx and use "use client" directive there, I did the same but still I have to use "use client" every where I have to use any heroUI component. Below is my code:
/app/layout.tsx
{children} ``import { Providers } from "./providers";
/app/providers.tsx
`
"use client";
import { HeroUIProvider } from "@heroui/react";
export function Providers({ children }: { children: React.ReactNode }) {
return {children};
}
`
The text was updated successfully, but these errors were encountered: