Skip to content

useEffect only works in Client Components. Add the "use client" while using next themes #109

@Chetan-KK

Description

@Chetan-KK

useEffect 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/react-client-hook-in-server-component

this error occurs when we use nextjs progressbar with next themes

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