react-email
A live preview of your emails right in your browser.

react-email downloads react-email version react-email license

react-emailSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on react-email's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of react-email](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-email.png)](https://npm-compare.com/react-email#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on react-email's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of react-email](https://npm-compare.com/img/github-trend/react-email.png)](https://npm-compare.com/react-email)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
react-email949,46516,986129 kB756 days agoMIT
README for react-email

React email cover

React Email
The next generation of writing emails.
High-quality, unstyled components for creating emails.

Getting started

To get started, open a new shell and run:

npx create-email

This will create a new folder called emails with a few email templates.

Commands

email dev

Starts a local development server that will watch your files and automatically rebuild your email when you make changes.

npx react-email dev

email export

Generates the plain HTML files of your emails into a out directory.

npx react-email export

Setting Up the Environment

When working in the CLI, a lot of friction can get introduced with installing it and rebuilding for every change. To avoid that, we have a script that can be linked globally to directly run the source code of the CLI. You can use it the same as you would the standard CLI.

1. Link react-email globally

pnpm link ./dev -g

2. Run the CLI

email-dev [command] [flags]

License

MIT License