New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderMJML children #914
Comments
Hi @maxs15 I think this is because mj-column can't receive plain HTML ( this.props.children will already be rendered when passing it into the mj-column ). I think this is something we didn't had in mind when creating this feature. We might need some kind of rawChildren that would allow this kind of thing. |
Hey @iRyusa, Ok I see what's the issue, rawChildren would be a handy property indeed. Thanks, and good work on MJML 4 🎉 |
ATM you can actually convert your JSON as XML with this snippet : https://jsfiddle.net/jp1nfsk0/ I think it should work fine 👍 Can you try it ? |
Awesome it works ! I'm gonna use that for the time being 👍 |
Yeah I think it will either be exposed as an helper method or as you said on BodyComponent, we'll talk about this 👍 |
@kmcb777 Can you add an option on |
I'm trying MJML 4 and I can't render the children of my custom component.
Here is what I'm doing, am I doing something wrong ?
Sorry if I'm missing something, always hard without doc ;) Thanks for the help.
Custom component
mjml template:
The text was updated successfully, but these errors were encountered: