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.
-
In my case, developers write
tsx
files and "yield" react elements or string into an array, to simplify, the code can look like:The
elements
array is finally a mix of strings and react nodes aftertsc
compilation, 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
.mdx
file or aVFile
object with string content, we already have react node objects, somdx.evaluate
seems not suitable for me.Beta Was this translation helpful? Give feedback.
All reactions