[ BLOG POST ]
Building email templates with React Email
Write email templates as React components, preview them locally, and send the rendered HTML through Sendflit.
Quick answer
React Email lets you write email templates as React components, preview them locally, and render them to HTML. Send the rendered HTML through Sendflit with the html field of the send request.
Key takeaways
Write templates as React components, with props and shared layout pieces.
Render the component to HTML at build or send time.
Send a plain text version alongside the HTML.
Why write email templates as components?
React Email lets you write an email template as a React component. You get props, shared layout pieces and a preview you can run locally, which makes templates easier to review and change without copying HTML by hand.
Keep the component simple. Email clients support a narrower set of CSS than a browser, so favor tables and inline styles where a template needs to look the same everywhere.
How do you render and send a template?
Render the component to HTML in your build or at send time, then pass the output as the html field of the send request. The SDK guide for React Email shows the full flow with the Node.js client.
Send a plain text version alongside the HTML. It helps accessibility, deliverability and any client that prefers text. Generate both from the same template data.
How do you test templates before release?
Preview the rendered email in a few major clients before you release a change, and check the plain text version too. A template that looks right in one client can break in another.
Keep links absolute and host images at a stable address. Relative paths break outside your site, and images that move are a common cause of broken emails.
Frequently asked questions
Does Sendflit support React Email?
Yes. The SDK documentation includes a React Email template guide.
Should I send plain text as well as HTML?
Yes. A plain text version helps accessibility and deliverability.
Why do my images break in some emails?
Usually the image URL is relative or the file has moved. Use absolute URLs at a stable address.
Last updated September 2026 by the Sendflit team.