79650267

Date: 2025-06-02 20:08:07
Score: 1.5
Natty:
Report link

This happens because createContext (React Context API) can only be used inside Client Components in Next.js App Router, but your .mdx file is treated as a server component by default.

So To fix that problem, you need to mark your MDX content or the components using React context as Client Components by adding the "use client" directives at the top of the file.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jeremy Griffin