A live preview of your emails right in your browser.
npm install react-emailTo get started, open a new shell and run:
``sh`
npx create-email
This will create a new folder called emails with a few email templates.
Starts a local development server that will watch your files and automatically rebuild your email when you make changes.
`sh`
npx react-email dev
Generates the plain HTML files of your emails into a out directory.
`sh`
npx react-email export
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.
`sh`
pnpm link ./dev -g
`sh``
email-dev [command] [flags]
MIT License