Getting Started
Migrating to React Email
Migrate from another email rendering framework to React Email
From MJML
- Remove the
mjml
npm package and installreact-email
and@react-email/components
- Find all MJML templates ending with the
.mjml
extension and convert these to React components with the.tsx
or.jsx
extension. - Replace MJML standard component tags with React Email component tags where possible, including
<Text>
,<Img>
,<Button>
etc. - Convert custom MJML components with the
.js
extension to React components with the.tsx
or.jsx
extension.