vcapretz-react-email-render
v1.1.4
Published
Transform React components into HTML email templates
Downloads
409
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