chromakode / react-html-email

Create elegant HTML email templates using React.
MIT License
896 stars 115 forks source link

Can I use it for server-side-rendering? #60

Closed max8hine closed 6 years ago

max8hine commented 6 years ago

Currently, I am trying to use reactHtmlEmail with my Keystone project(A node cms)

I'm using express-react-views as my express engine.

and sending email using express-react-views as my email render engine as well. and using html-to-text to convert HTML to the text string.

I did not use renderEmail API to render components that react-html-email provides.

So, I wonder how to the SSR and Have I done it right?

max8hine commented 6 years ago

I found express-react-views uses ReactDOM.renderToStaticMarkup under the hook.

and renderEmail API only add doctype on top of it.

close.