Hacker News new | ask | show | jobs
by Goosey 3496 days ago
There already exist multiple Markdown components, for example 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

1 comments

If it was passed as "children" rather than a named prop, it should look pretty similar. It just wouldn't be pre-compiled.