You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Install React Email using the [automatic](https://react.email/docs/getting-started/automatic-setup) or [manual](https://react.email/docs/getting-started/manual-setup) setup.
22
+
2. Create an email component in the `emails` directory (e.g., `new-user.tsx`). Ensure the component is the default export.
15
23
16
-
Create an email in the emails directory e.g. new-user.tsx, make sure the component is the default export.
24
+
Example email component:
17
25
18
-
```tsx
19
-
import { Html } from'@react-email/html';
20
-
import { Text } from'@react-email/text';
26
+
```tsx
21
27
import*asReactfrom'react';
28
+
import { Text, Html } from'@react-email/components';
22
29
23
30
exportdefaultfunction Email({ user }) {
24
31
return (
@@ -29,29 +36,35 @@ export default function Email({ user }) {
0 commit comments