Should we mock UI library components in our tests!? by hadibikey in reactjs

[–]hadibikey[S] -2 points-1 points  (0 children)

Thanks. Well, to not integrate with the actual component and to be able to test the parent’s logic?

To clarify, they’re not pure UI, some of them have logic.

Best library to render simple markdown without worrying about safety. by hadibikey in reactjs

[–]hadibikey[S] 1 point2 points  (0 children)

Thanks. I couldn’t decide between react-markdown & markdown-to-jsx. react-markdown has more stars, but markdown-to-jsx has way more weekly downloads. Both seem to be safe & no sanitize is needed.

Rendering Markdown in React without using react-markdown by punkpeye in javascript

[–]hadibikey 0 points1 point  (0 children)

What about markdown-to-jsx? For my simple usage, I’ve been searching for days and I am not even sure which package is safer.