Skip to content

Add use client directive #273

Open
Open
@chandlervdw

Description

@chandlervdw
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions