RE

React Email

react-email

A live preview of your emails right in your browser.

Utilities
react
email
react-email
Utilities
javascript
npm
frontend
open source
ui
library
Stars
20k
Weekly
3.8M
Open issues
33
Bundle
~25 kB

Installation

npm install react-email

Code example

import { useEmail } from "react-email";

export function Example() {
  const value = useEmail();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by zenorocha
  • 3.8M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 33 open issues on GitHub

FAQs

Alternatives & similar libraries