React email templates: code components or a visual editor?
Two different things share this search: templates you write in JSX, and templates your users edit in a drag-and-drop editor. Here is the difference, when to pick which, and the code to start from a ready-made template for free.
By the MailKaro team · Published 7 October 2026 · Updated
Searching for React email templates usually means one of two things. Developers who want to write every email themselves look for code-first components: you build the email in JSX, a renderer turns it into HTML, and every change goes through a code review and a deploy. Product teams that want their users (marketers, support staff, customers) to design emails look for a visual editor with ready-made templates.
Neither is better in general. Code-first fits transactional emails that engineers own, such as password resets and receipts, where the layout rarely changes. A visual editor fits emails that non-developers change often, such as newsletters, promotions and lifecycle campaigns. Many products use both.
MailKaro is the second kind. It is an embeddable, white-label, drag-and-drop editor for React (and Vue, Angular and plain JavaScript) with 48 starter templates built in. This guide shows how to load a template, let a user edit it, and render the result to email-safe HTML on your server. The Free plan covers the whole loop.
1Choose code components or a visual editor
Pick code-first when developers own the email, it changes rarely, and it should live in your repository next to the rest of your code.
Pick a visual editor when people who do not write code need to change the email, when you want ready-made templates, previews, comments or approvals, or when each of your customers needs their own emails under their own brand.
2Embed the editor in your React app
Install the package, mount the editor in a container with a height, and pass a publishable key. The Free plan includes the full drag-and-drop editor, 1 embed token and 2 team seats.
npm install react-email-craft import EmailEditor, { type MailkaroIframeEditorRef } from "react-email-craft"; import { useRef } from "react"; export function EmailDesigner({ templateDesign }) { const ref = useRef<MailkaroIframeEditorRef>(null); return ( <div style={{ height: "100vh" }}> <EmailEditor ref={ref} token="pk_live_your_publishable_key" /> </div> ); }3Start from a ready-made template
The editor ships with a Template Library of 48 starter templates: editorial, promo, transactional, events, community, ecommerce, SaaS, hospitality, seasonal, lifestyle, finance, business and more. Your users open it from Body, Templates, Open Library. You can browse every template at mailkaro.com/templates and open any one in the live demo.
A template is a design JSON document, not a React component. To start a user from one, load its JSON when the editor is ready.
// templateDesign is a design JSON document, for example one you saved from the editor const onReady = () => ref.current?.editor.loadDesign(templateDesign); <EmailEditor ref={ref} token="pk_live_your_publishable_key" onReady={onReady} />4Let users edit it, then store the design JSON
Users change any block, color and line of text. When they save, call exportHtml. You get the design JSON and a preview of the HTML. Store the JSON in your own database, because it is the source of truth that reopens in the editor later.
const save = () => ref.current?.editor.exportHtml(async ({ design, html }) => { await fetch("/api/designs", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ design, html }), }); });5Render on your server and send
For sending, render the stored design to email-safe HTML on your server with the Node SDK, or call the hosted render endpoint. MJML and plain text are available too. Then hand the HTML to the provider you already use.
// server-side (Node.js) import { renderDesign, renderMjml } from "email-craft-sdk"; const html = renderDesign(design, { fullDocument: true }); // inbox-safe HTML const mjml = renderMjml(design); // or MJML6What is free and what is not
Free costs $0 and includes the full drag-and-drop editor, the HTML and MJML render API, 1 embed token and 2 team seats. Your own Amazon S3 and Google Drive uploads work on Free, and exportHtml() in your own code returns the design and the HTML.
Pro is $60 a month ($54 a month billed yearly). It adds white-label branding, the Download HTML button in the editor toolbar, saved versions, collaboration, inbox previews, pre-send QA checks and custom themes. Prices change, so check the pricing page.
In short: use code components for emails that developers own, and a visual editor for emails that people edit. If you want the second, start from one of the 48 templates, embed the editor, store the design JSON, and render on the server.
Browse the templates at mailkaro.com/templates, or try the editor with no account at mailkaro.com/demo.
Common questions
- What are React email templates?
- The phrase covers two things: code components that developers write in JSX and render to HTML, and designs that people edit visually in an embedded editor. MailKaro is the visual kind.
- Is there a free React email template builder?
- Yes. MailKaro's Free plan costs $0 and includes the full drag-and-drop editor, the HTML and MJML render API, 1 embed token and 2 team seats. White-label branding and the Download HTML button in the toolbar are Pro features, while exportHtml() in your own code works on Free.
- Are MailKaro templates React components?
- No. They are design JSON documents for the MailKaro editor. They load into the editor with loadDesign and render to email-safe HTML or MJML with the render API.
- Can my users start from these templates?
- Yes. The starter templates are in the Template Library of every embedded editor, so your users can open one and edit it.
- Which email provider can I send with?
- Any. The rendered HTML works with Resend, SendGrid, Amazon SES, Postmark, Mailgun or your own SMTP server.
- Can I combine this with code-first emails?
- Yes. Many products keep transactional emails as code and give their users the visual editor for campaigns and newsletters.
Give your users an email editor today.
Start on the free plan. Embed the editor, invite your team, and ship on-brand emails.