Framework Integration

React + Unosend

Build beautiful email templates with React components and send them with Unosend. Use JSX to create responsive HTML emails.

Features

Everything you need to send emails from React

React Email component library

JSX email templates

Hot reload in development

Preview emails locally

TypeScript support

Quick Start

Get up and running in minutes with this code example

Code Example
// emails/welcome.tsx
import { Html, Head, Body, Container, Text, Button } from '@react-email/components';

export function WelcomeEmail({ name }: { name: string }) {
  return (
    <Html>
      <Head />
      <Body style={{ fontFamily: 'sans-serif' }}>
        <Container>
          <Text>Welcome, {name}!</Text>
          <Button href="https://app.yourdomain.com">
            Get Started
          </Button>
        </Container>
      </Body>
    </Html>
  );
}

// Usage with Unosend
import { render } from '@react-email/render';
import { Unosend } from '@unosend/node';

const unosend = new Unosend(process.env.UNOSEND_API_KEY);
const html = await render(<WelcomeEmail name="John" />);

await unosend.emails.send({
  from: 'hello@yourdomain.com',
  to: 'user@example.com',
  subject: 'Welcome!',
  html,
});

Setup Guide

Follow these steps to integrate Unosend with React

1

Install dependencies: npm install @unosend/node @react-email/components

2

Create email templates as React components

3

Use render() to convert React to HTML

4

Send with Unosend from your backend

Why Use Unosend with React?

Familiar React patterns for email

Reusable email components

Preview and test emails locally

Type-safe template props

Ready to integrate?

Start sending emails from React in under 5 minutes. Free tier includes 5,000 emails/month.