Replies: 1 comment 1 reply
-
|
Since MDX is hybrid language between markdown and JavaScript(X), we need to make trade-offs. Props values are parsed as JavaScript expressions. Your suggestion is to parse props values as MDX. This means for example the following MDX: <Element hello={'World'} />would now be equivalent to the following JSX: <Element hello={<p>'World'</p>} />I think this would come as a total surprise to users. Coincidentally, I wrote a nice little related blog post some time ago. You might like that pattern. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
outputs
Is this by design? What's the reason for it?
Beta Was this translation helpful? Give feedback.
All reactions