-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
I'm attempting to use this in a NextJS 13 app using the App Router, which defaults to React Server Components. Thusly, client-side components must be specified. This change would be 100% backwards compatible.
r1chm8, bryan-hoang and LavransBjerkestrand
Metadata
Metadata
Assignees
Labels
No labels