Closed max8hine closed 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.
express-react-views
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.
html-to-text
I did not use renderEmail API to render components that react-html-email provides.
renderEmail
So, I wonder how to the SSR and Have I done it right?
I found express-react-views uses ReactDOM.renderToStaticMarkup under the hook.
ReactDOM.renderToStaticMarkup
and renderEmail API only add doctype on top of it.
close.
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 usinghtml-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?