MDX combines the simplicity of Markdown with the power of React components, allowing you to create rich, interactive content that goes far beyond static text.
Unlike regular Markdown, MDX lets you embed React components directly in your content. This means you can create:
Here's a perfect example - let's look at programming language popularity and difficulty:
✨ This interactive chart is rendered directly in MDX!
The chart above shows real data about different programming languages. Notice how Python has high popularity but relatively low difficulty - making it perfect for beginners in robotics!
MDX components can be configured with different properties. Here's the same data as a pie chart showing development focus areas:
✨ This interactive chart is rendered directly in MDX!
And here's a line chart showing how students typically progress through different skill levels:
✨ This interactive chart is rendered directly in MDX!
What you just saw were live, interactive React components embedded directly in Markdown content. Here's how simple it is:
Interactive content like this helps students:
MDX isn't limited to charts. You can embed:
<MDXVideo>
)The possibilities are endless when you combine Markdown's simplicity with React's power!
Here's another example - meet ROB-E, our RoboDOJO mascot! Hover over him to see the blink animation, and click for a friendly greeting:
This button demonstrates:
In your own MDX files, you can now use:
<MDXVideo url="..." />
for embedded videos<MDXChart type="bar|pie|line" title="..." />
for data visualizationThis is what makes MDX perfect for modern educational content - it's as easy to write as Markdown, but as powerful as a full web application.