@zindua/react-email
v1.0.1
Published
Push React Email components into Zindua hosted templates (render + upsert).
Maintainers
Readme
@zindua/react-email
Local helper: render() a React Email component, then push HTML into Zindua hosted templates.
npm install @zindua/react-email @zindua/sdk react-emailimport { Zindua } from "@zindua/sdk";
import { pushReactEmail } from "@zindua/react-email";
import { WelcomeEmail } from "./emails/welcome";
const zindua = new Zindua({ apiKey: process.env.ZINDUA_API_KEY! });
await pushReactEmail({
client: zindua,
slug: "welcome",
lang: "en",
subject: "Welcome {{name}}",
element: <WelcomeEmail name="{{name}}" appName="{{appName}}" />,
isDefault: true,
});
await zindua.send({
to: "[email protected]",
template: "welcome",
variables: { name: "Ada", appName: "Acme" },
});Docs: https://zindua.run/react-email
