NextUI Library
Unanswered
West African Lion posted this in #help-forum
West African LionOP
Does NextUI Library support server components in NextJS
5 Replies
Britannia Petite
You can use NEXTUI but all your components would be client component
"App Directory Setup
Next.js 13 introduces a new app/ directory structure. By default it uses Server Components. As NextUI components use React hooks, we added the use client; at build time, so you can import them directly in your React Server Components (RSC)."
Next.js 13 introduces a new app/ directory structure. By default it uses Server Components. As NextUI components use React hooks, we added the use client; at build time, so you can import them directly in your React Server Components (RSC)."
and you will lost the benefits of RSC IMO
@Britannia Petite You can use NEXTUI but all your components would be client component
Incorrect. NextUI components are client components because they need interactivity, but the components written by the developer don’t have to be client components. And benefits of RSCs are still there.