⚠️ This lesson is retired and might contain outdated information.

Make React components globally available as shortcodes in MDX

Kyle Gill
InstructorKyle Gill
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 2 years ago

Learn how to make imported components globally available across all of your MDX pages. The MDXProvider is able to "provide" MDX children nodes with components so you don't need to import them in every document they are used in.

You can read about the MDXProvider in the MDX docs.

Or see more instructions and additional context in the Gatsby docs for using shortcodes.