1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Make React components globally available as shortcodes in MDX

    gatsbyGatsby

    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.