Replies: 1 comment 1 reply
-
|
Depends on what you want in those strings. Markdown or MDX. |
Beta Was this translation helpful? Give feedback.
-
|
Depends on what you want in those strings. Markdown or MDX. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my case, developers write
tsxfiles and "yield" react elements or string into an array, to simplify, the code can look like:The
elementsarray is finally a mix of strings and react nodes aftertsccompilation, now I'd like to render it in React runtime and make it behave very like MDX, e.g. the "sunny" word is bolded.The key difference from what MDX provides now is that we don't have a standalone
.mdxfile or aVFileobject with string content, we already have react node objects, somdx.evaluateseems not suitable for me.Beta Was this translation helpful? Give feedback.
All reactions