Skip to content

How to transform a markdown string to be used in a React component #2024

Answered by wooorm
thammarith asked this question in Q&A
Discussion options

You must be logged in to vote
  • There is no need to use MDX for this. MDX is way more powerful and heavy that this. If you already use MDX, you are likely using MDX in your build tools, which is not the same as shipping it to the frontend and shipping it to every user
  • @mdx-js/runtime is old, you can use evaluate from @mdx-js/mdx 2, this is documented in several places including the getting started docs

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants