Skip to content

Commit 0ed317b

Browse files
authored
fix(docs): Outdated manual setup (#1704)
1 parent 448cd09 commit 0ed317b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

apps/docs/getting-started/manual-setup.mdx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,22 @@ Install the React Email package locally and a few components.
2828

2929
```sh npm
3030
npm install react-email -D -E
31-
npm install @react-email/components -E
31+
npm install @react-email/components react react-dom -E
3232
```
3333

3434
```sh yarn
3535
yarn add react-email -D -E
36-
yarn add @react-email/components -E
36+
yarn add @react-email/components react react-dom -E
3737
```
3838

3939
```sh pnpm
4040
pnpm add react-email -D -E
41-
pnpm add @react-email/components -E
41+
pnpm add @react-email/components react react-dom -E
42+
```
43+
44+
```sh bun
45+
bun add react-email -D -E
46+
bun add @react-email/components react react-dom -E
4247
```
4348

4449
</CodeGroup>
@@ -55,11 +60,11 @@ Include the following script in your `package.json` file.
5560
}
5661
```
5762

58-
## 4. Include email template
63+
## 4. Write an email template
5964

60-
Create a new folder called `emails`, create a file inside called `index.tsx`, and add the following code:
65+
Create a new folder called `emails`, create a file inside called `my-email.tsx`, and add the following code:
6166

62-
```jsx index.tsx
67+
```jsx emails/my-email.tsx
6368
import { Button, Html } from "@react-email/components";
6469
import * as React from "react";
6570

@@ -91,6 +96,14 @@ npm run dev
9196
yarn dev
9297
```
9398

99+
```sh pnpm
100+
pnpm dev
101+
```
102+
103+
```sh bun
104+
bun dev
105+
```
106+
94107
</CodeGroup>
95108

96109
## 6. See changes live

0 commit comments

Comments
 (0)