Skip to content
Discussion options

You must be logged in to vote
  • MDXProvider is not deprecated. But it’s often not needed. More in the docs: https://mdxjs.com/docs/using-mdx/#mdx-provider.
  • We compile MDX to a component, as you can see from the output. Next.js decides that components are rendered already (as in, that you get children here instead of a component). We don’t do that, other frameworks don’t do that. It’s a conscious decision by Next.js that prevents you from passing stuff, and we can’t get around it.
  • I would recommend looking at the new capabilities of plugins instead of string building like this,
    example.

I don’t really understand the problem, you could create a factory function that gets props that wraps layouts?
I don‘t understand you…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@godmar
Comment options

@wooorm
Comment options

Answer selected by ChinW
Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants