@jsx-email/render
Documentation
This package requires an LTS Node version (v18.0.0+) and React v18.2.0+.
pnpm add @jsx-email/render
# We recommend pnpm - https://pnpm.io
# But npm and yarn are supported
# npm add @jsx-email/render
# yarn add @jsx-email/render
Convert React components into a HTML string.
import { MyTemplate } from '../components/MyTemplate';
import { render } from '@jsx-email/render';
const html = render(<MyTemplate firstName="Jim" />);
Please see the @jsx-email/render
Documentation for props and additional usage information.
This package was built upon prior work for react-email
by Bu Kinoshita (@bukinoshita) and Zeno Rocha (@zenorocha).