Next.js Discord

Discord Forum

remote mdx components

Answered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
I am about to crash out.

Using next mdx remote:
          <MDXRemote components={useMDXComponents} source={post.content} />


useMDXComponents is the exported function from mdx-components.tsx - but my custom components aren't being seen in the rendered MDX?????
Answered by Australian Freshwater Crocodile
turns out you cant pass functions! must be an actual object!
View full answer

1 Reply

Australian Freshwater CrocodileOP
turns out you cant pass functions! must be an actual object!
Answer