RE

Render

@react-email/render

Transform React components into HTML email templates

Utilities
react
email
@react-email/render
Utilities
javascript
npm
frontend
open source
ui
library
Stars
20k
Weekly
0
Open issues
33
Bundle
~60 kB

Installation

npm install @react-email/render

Code example

import { useRender } from "@react-email/render";

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

Pros & cons

Pros

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

Considerations

  • Adds roughly ~60 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