mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
12f46209a1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: gabriel miranda <gabriel@resend.com>
@react-email/render
Transform React components into HTML email templates.
Install
Install component from your command line.
With yarn
yarn add @react-email/render -E
With npm
npm install @react-email/render -E
Getting started
Convert React components into a HTML string.
import { MyTemplate } from "../components/MyTemplate";
import { render } from "@react-email/render";
const html = await render(<MyTemplate firstName="Jim" />);
License
MIT License
