# @react-email/render

> Transform React components into HTML email templates

Latest version **2.1.0** (published 2026-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-email/render
pnpm add @react-email/render
yarn add @react-email/render
bun add @react-email/render
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2026-07-10 |
| First published | 2022-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 4 |
| Unpacked size | 185.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 19752 |
| Maintainers | zenorocha, bukinoshita, gabrielmfern, jopcmelo, rehan |
| Keywords | react, email |

## Links

- npm: https://www.npmjs.com/package/@react-email/render
- Repository: https://github.com/resend/react-email
- Homepage: https://react.email
- Issues: https://github.com/resend/react-email/issues
- npm.io page: https://npm.io/package/@react-email/render

## Dependencies (4)

- [entities](https://npm.io/package/entities.md) ^4.5.0
- [prettier](https://npm.io/package/prettier.md) ^3.5.3
- [html5parser](https://npm.io/package/html5parser.md) ^3.0.0
- [html-to-text](https://npm.io/package/html-to-text.md) ^9.0.5

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2026-07-10
- 2.0.7-canary.0 (canary) — 2026-04-15
- 1.0.3-alpha-f49712983-20241115 (alpha) — 2024-11-15
- 2.0.10 — 2026-07-02
- 2.0.9 — 2026-06-16
- 2.0.8 — 2026-04-28
- 2.0.7 — 2026-04-16
- 2.0.6 — 2026-04-09
- 2.0.5 — 2026-03-31
- 2.0.4 — 2026-01-20
- 2.0.3 — 2026-01-19
- 2.0.2 — 2026-01-07
- 2.0.2-canary.0 — 2025-12-30
- 2.0.1 — 2025-12-29
- 2.0.1-canary.0 — 2025-12-18
- … 63 more at https://npm.io/package/@react-email/render/versions

## README

![React Email button cover](https://react.email/static/covers/render.png)

<div align="center"><strong>@react-email/render</strong></div>
<div align="center">Transform React components into HTML email templates.</div>
<br />
<div align="center">
<a href="https://react.email">Website</a>
<span> · </span>
<a href="https://github.com/resend/react-email">GitHub</a>

</div>

## Install

Install component from your command line.

#### With yarn

```sh
yarn add @react-email/render -E
```

#### With npm

```sh
npm install @react-email/render -E
```

## Getting started

Convert React components into a HTML string.

```jsx
import { MyTemplate } from "../components/MyTemplate";
import { render } from "@react-email/render";

const html = await render(<MyTemplate firstName="Jim" />);
```

## License

MIT License

---
_Source: https://npm.io/package/@react-email/render · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
