1. Create an email template
Create a new file atplayground/emails/testing.tsx
playground/emails/testing.tsx
playground/emails/testing.tsx
import { Html, Head, Body, Tailwind, Text } from '@react-email/components';
export default function Testing() {
return <Tailwind>
<Html>
<Head/>
<Body className="bg-black text-white">
<Text className="m-0 my-4 bg-cyan-200 text-slate-800">
This is a testing email template.
</Text>
</Body>
</Html>
</Tailwind>;
}
.gitignore file will ignore all changes in playground/emails so you can test component changes and use cases in example templates without committing them to the repository.pnpm dev