This package has been deprecated

Author message:

The project has moved to a single package. Please install `jsx-email` for further updates

@jsx-email/render
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

npm Join our Discord libera manifesto

JSX email

@jsx-email/render

JSX email A package for rendering JSX email components to HTML email

@jsx-email/render Documentation

Requirements

This package requires an LTS Node version (v18.0.0+) and React v18.2.0+.

Install

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

Usage

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.

Attribution 🧡

This package was built upon prior work for react-email by Bu Kinoshita (@bukinoshita) and Zeno Rocha (@zenorocha).

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @jsx-email/render

Weekly Downloads

685

Version

3.0.1

License

MIT

Unpacked Size

74.7 kB

Total Files

9

Last publish

Collaborators

  • shellscape