MDXProvider and MDXRenderer #31097
JSinkler713
started this conversation in
Community
Replies: 1 comment
-
My life saver! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey was having a time of it finding anyone using MDXRenderer and MDXProvider. Thought you could pass through components in MDXRenderer like you can in MDXProvider, but that's not the case. You can see them show up in the devTools but they are not usable.
So solution is just to wrap the MDXRenderer in the MDXProvider, since as they say in the docs, all children will now have access to the components, including the one that is about to be created with MDXRenderer. Short Ex:
Hope someone finds this useful 👋
Beta Was this translation helpful? Give feedback.
All reactions