@react-email/render
v1.0.2
Published
Transform React components into HTML email templates
Downloads
2,839,230
Readme
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