Learn how to use MXD (Markdown + JSX + HTML) with Next.js (using TypeScript) #13843
Unanswered
Vadorequest
asked this question in
Show and tell
Replies: 2 comments 3 replies
-
Yes, it's possible. It's what i'm doing at https://mdxblog.now.sh . You can see a pingpong game rendered at https://mdxblog.now.sh/posts/New-post , which is a MDX file with |
Beta Was this translation helpful? Give feedback.
3 replies
-
live demo is not found. |
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
-
I've made a simple POC about bringing the power of MDX inside a Next.js application.
POC:
It's really exciting to be able to combine this as a 3-in-1 file. MDX really brings something new by allowing to combine JSX (react components) with well-known markdown/HTML.
This POC alone should help you get up to speed if you're interested with MDX.
But my end goal is to see if we can use MDX from a CMS, and build pages using content (MDX) from an external system, like a CMS. (If possible, then I plan to make a POC, using Airtable at first)
You can see my motivations and discuss this advanced use-case in this RFC
This could lead to a very advanced level of customisation, for an end-user point of view (content manager, writer, etc.), using a panel of pre-made React components as simply as writing HTML.
Related:
Beta Was this translation helpful? Give feedback.
All reactions