Add 'use client'
to react components
#2791
suhaibmujahid
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This will allow importing the components in Next.js (App Router) without the need to wrap the components to create a client component boundary.
This could be added in addition or replacing
import 'client-only'
:headlessui/packages/@headlessui-react/src/index.ts
Line 1 in 1469b85
Related:
client-only
to mark everything as client components #1981 (comment)Beta Was this translation helpful? Give feedback.
All reactions