react-email-blueprints
📬 Collection of React components for server-side e-mail template rendering
Installation
npm install react-email-blueprints
Example
;;; const MyEmail = { return <LayoutMail imageBase=propsimageBase> <Body> <Spacer imageBase=propsimageBase /> <Logo imageBase=propsimageBase /> <Spacer imageBase=propsimageBase /> <Widget width="100%"> <H2>This is an e-mail</H2> <H3>More text in this e-mail much more text much much more text</H3> </Widget> </Body> <Footer imageBase=propsimageBase /> <Spacer imageBase=propsimageBase /> </LayoutMail> ;}; ReactDOM;
Alternatives
- Oy (https://github.com/revivek/oy): Another solution to render e-mails with React
- MJML (https://mjml.io/): If you don't like React, but want an easier way to describe e-mails in a markup language
License
MIT