wix-incubator / mjml-react

React component library to generate the HTML emails on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration with create-react-app?

mrlubos opened this issue · comments

commented

Hey! Thanks for making this wrapper for React. I am wondering what's the best way to integrate this project with create-react-app? It appears it already has all dependencies this project uses, maybe except for express.

Hi @mrlubos,

mjml-react library is designed to be run on a server side only (at least currently).
It won't run in a browser app created by create-react-app, unless you would use server side rendering only.

commented

Hi @mastertheblaster! That makes sense. Are you able to point me to where this server-side limitation comes from and what would be needed to get it working in browser? Is it the mjml package directly?

Hey @mrlubos you can check the following links:

#36 (comment)
mjmlio/mjml#1365

Suma sumarum you are right, it's the limitation of the mjml package. Check the second link above.

commented

Thank you for your help @mastertheblaster!

commented

@mastertheblaster Can we reopen this issue now that mjml-browser package is available?

commented

Hey @mastertheblaster, there's now the great mailing project which implements this functionality and builds on top of this project and mjml! https://github.com/successor-software/mailing