A library for building emails with React, version 2.5.0. Provides components and utilities to create responsive, template-based emails using React, simplifying the process of generating HTML emails. It emphasizes a component-based approach, allowing reuse and composition, and integrates with common email sending services. Key differentiators include a focus on React developers familiar with JSX, reducing the need for traditional email template languages. Currently stable with regular updates.
npm install castle-email-libVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of CastleEmail component and EmailRenderer to generate email HTML.
Update imports: `import { CastleEmail } from 'castle-email-lib'` and subpath imports for additional exports.Use named imports instead.
Always pass a React element, e.g., `renderer.render(<MyComponent />)`.
Use ESM imports or upgrade build system.
Run `npm install castle-email-lib` and use correct import: `import { CastleEmail } from 'castle-email-lib'`.Use named import: `import { CastleEmail } from 'castle-email-lib'`.Ensure React is installed and import CastleEmail correctly.