Lib throwing `TypeError: createContext only works in Client Components.` but it's wrapped already
Answered
Brown bear posted this in #help-forum
Brown bearOP
Hey guys, trying to use
and ofc importing the wrapped version but still throwing. Tried different variants too. Any idea? Should be right according to docs?
react-scrollmagic and wrapped it like so"use-client";
export * from "react-scrollmagic";and ofc importing the wrapped version but still throwing. Tried different variants too. Any idea? Should be right according to docs?
1 Reply
Brown bearOP
nevermind
"use-client"; instad of "use client";Answer