2 ms·
There already exist multiple Markdown components, for example https://github.com/rexxars/react-markdown https://github.com/rexxars/react-markdown The interesti
by Goosey 10y ago
There already exist multiple Markdown components, for example https://github.com/rexxars/react-markdown https://github.com/rexxars/react-markdown
The interesting thing here is that it is inline.
edit: No judgement if being inline is a pro or a con. Personally I prefer to keep it in a specific component, but I see the appeal fo this
- svachalek 10y agoIf it was passed as "children" rather than a named prop, it should look pretty similar. It just wouldn't be pre-compiled.