Faire / mjml-react

React component library to generate the HTML emails on the fly
https://www.npmjs.com/package/@faire/mjml-react
MIT License
376 stars 16 forks source link

Update testing to cover all mjml components and important prop logic #47

Closed emmclaughlin closed 1 year ago

emmclaughlin commented 1 year ago

Add two test case files:

mjml-components

mjml-props

One change was also made while testing. I noticed MjmlStyle automatically passed its children to dangerouslySetInnerHtml under the hood. This is bad because it is not obvious to the developer. Given that we have added support for the dangerouslySetInnerHtml prop, I updated this component to use children as expected.