Replies: 2 comments 4 replies
-
use @mdx-js/react layout code: <MDXProvider disableParentContext components={components}>
<Suspense fallback={null}>
<Outlet />
</Suspense>
</MDXProvider> |
Beta Was this translation helpful? Give feedback.
4 replies
-
All that you need to do is making this change in
Now in blog layout you can simply pass
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to define a components mapping object that is then applied to all MDX routes? The only way to apply components to an MDX module is to pass it as a prop, for example:
However, if I want to use an MDX file as a route, I'm not actually calling the component anywhere so I can't pass any props.
Is there a way to do this globally?
Beta Was this translation helpful? Give feedback.
All reactions