MDX runtime - render MDX on the client side with create react app - MDX for data exchange #1705
-
Hello, I am working on a project where I want to use MDX files for data exchange with create react app. So the client has to render MDX at runtime. The warnings say that it is not the recommended way to use MDX. So which is the correct way to use MDX to render while runtime? Because of the warning I created a second project with which I can also render MDX at runtime with the example from the docs So I am on the point where I can render MDX at runtime with both projects. My question is does the runtime package the same as the "do it yourself" entry in the background? Thank you for helping! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Could you expand more on your use case and why you want to send components dynamically to the client?
Using
Mostly, you can compare with the
Soon runtime will become evaluate mode on
You can follow updates to the version 2 release, and it's release date at #1041 |
Beta Was this translation helpful? Give feedback.
Could you expand more on your use case and why you want to send components dynamically to the client?
Are you rendering user generated content? Or files written by yourself/your team?
Would serverside rendering or static file rendering work as an alternative?
Using
@mdx-js/runtime
is the equivalent of usingeval
. It can run any code.Either use it with content that you trust completely.
Or sandbox the code…