Skip to content

Latest commit

 

History

History
 
 

render

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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