3 ms·
MDX[1] enables you to embed working JSX (eg React components) directly in your Markdown files. It doesn't need to be a separate file; you can just write the cod
by onion2k 7y ago
MDX[1] enables you to embed working JSX (eg React components) directly in your Markdown files. It doesn't need to be a separate file; you can just write the code in to the content file and it'll render an interactive component. One quite useful aspect of this is that you can have example code and a working example next to each other driven by the same content.
I'm not sure that's actually a good thing, but it does exist.
[1] https://github.com/mdx-js/mdx https://github.com/mdx-js/mdx