-
Notifications
You must be signed in to change notification settings - Fork 872
chore(docs): renovate guides #2722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Changes from all commits
4d54ead
394a3c2
c10995a
d231af2
4afe3d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ Include a new `package.json` and do not forget to add this to the `workspaces` o | |
| Install React Email in the `transactional` workspace. | ||
|
|
||
| ```sh packages/transactional | ||
| npm install react-email -D -E | ||
| npm install react-email @react-email/preview-server -D -E | ||
| npm install @react-email/components react react-dom -E | ||
| ``` | ||
|
|
||
|
|
@@ -46,24 +46,25 @@ Include the following script in your `package.json` file. | |
|
|
||
| Create a new folder called `emails`, create a file inside called `MyEmail.tsx` and add the following example code: | ||
|
|
||
| ```jsx packages/transactional/emails/MyEmail.tsx | ||
| import { Button, Html } from "@react-email/components"; | ||
| ```jsx packages/transactional/emails/email.tsx | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Documentation inconsistency: The code block path was changed to Prompt for AI agents |
||
| import { Button, Html, Head, Body } from "@react-email/components"; | ||
| import * as React from "react"; | ||
|
|
||
| export const MyEmail = () => { | ||
| export default function Email() { | ||
| return ( | ||
| <Html> | ||
| <Button | ||
| href="https://example.com" | ||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||
| > | ||
| Click me | ||
| </Button> | ||
| <Head /> | ||
| <Body> | ||
| <Button | ||
| href="https://example.com" | ||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||
| > | ||
| Click me | ||
| </Button> | ||
| </Body> | ||
| </Html> | ||
| ); | ||
| } | ||
|
|
||
| export default MyEmail; | ||
| ``` | ||
|
|
||
| ## 5. Run preview server | ||
|
|
@@ -79,7 +80,7 @@ npm run dev | |
| Visit [localhost:3000](http://localhost:3000) and edit the `emails/MyEmail.tsx` file to see the changes. | ||
|
|
||
| <Frame> | ||
| <img alt="Local Development" src="/images/local-dev.jpg" /> | ||
| <img alt="Local Development" src="/images/manual-setup-dev.png" /> | ||
| </Frame> | ||
|
|
||
| ## 7. Try it yourself | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,7 @@ in there setup a new `package.json` and do not forget to add this to your `pnpm- | |||||
| Install React Email in the `transactional` workspace. | ||||||
|
|
||||||
| ```sh packages/transactional | ||||||
| pnpm add react-email -D -E | ||||||
| pnpm add react-email @react-email/preview-server -D -E | ||||||
| pnpm add @react-email/components react react-dom -E | ||||||
| ``` | ||||||
|
|
||||||
|
|
@@ -45,24 +45,25 @@ Include the following script in your `package.json` file. | |||||
|
|
||||||
| Create a new folder called `emails`, create a file inside called `MyEmail.tsx` and add the following example code: | ||||||
|
|
||||||
| ```jsx packages/transactional/emails/MyEmail.tsx | ||||||
| import { Button, Html } from "@react-email/components"; | ||||||
| ```jsx packages/transactional/emails/email.tsx | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Documentation inconsistency: The code block path changed to Prompt for AI agents
Suggested change
|
||||||
| import { Button, Html, Head, Body } from "@react-email/components"; | ||||||
| import * as React from "react"; | ||||||
|
|
||||||
| export const MyEmail = () => { | ||||||
| export default function Email() { | ||||||
| return ( | ||||||
| <Html> | ||||||
| <Button | ||||||
| href="https://example.com" | ||||||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||||||
| > | ||||||
| Click me | ||||||
| </Button> | ||||||
| <Head /> | ||||||
| <Body> | ||||||
| <Button | ||||||
| href="https://example.com" | ||||||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||||||
| > | ||||||
| Click me | ||||||
| </Button> | ||||||
| </Body> | ||||||
| </Html> | ||||||
| ); | ||||||
| } | ||||||
|
|
||||||
| export default MyEmail; | ||||||
| ``` | ||||||
|
|
||||||
| ## 5. Run preview server | ||||||
|
|
@@ -78,7 +79,7 @@ pnpm dev | |||||
| Visit [localhost:3000](http://localhost:3000) and edit the `emails/MyEmail.tsx` file to see the changes. | ||||||
|
|
||||||
| <Frame> | ||||||
| <img alt="Local Development" src="/images/local-dev.jpg" /> | ||||||
| <img alt="Local Development" src="/images/manual-setup-dev.png" /> | ||||||
| </Frame> | ||||||
|
|
||||||
| ## 7. Try it yourself | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ nodeLinker: node-modules | |
| Install React Email in the `transactional` workspace. | ||
|
|
||
| ```sh packages/transactional | ||
| yarn add react-email -D -E | ||
| yarn add react-email @react-email/preview-server -D -E | ||
| yarn add @react-email/components react react-dom -E | ||
| ``` | ||
|
|
||
|
|
@@ -61,24 +61,25 @@ Include the following script in your `package.json` file. | |
|
|
||
| Create a new folder called `emails`, create a file inside called `MyEmail.tsx` and add the following example code: | ||
|
|
||
| ```jsx packages/transactional/emails/MyEmail.tsx | ||
| import { Button, Html } from "@react-email/components"; | ||
| ```jsx packages/transactional/emails/email.tsx | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: File name inconsistency: The code block now references Prompt for AI agents |
||
| import { Button, Html, Head, Body } from "@react-email/components"; | ||
| import * as React from "react"; | ||
|
|
||
| export const MyEmail = () => { | ||
| export default function Email() { | ||
| return ( | ||
| <Html> | ||
| <Button | ||
| href="https://example.com" | ||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||
| > | ||
| Click me | ||
| </Button> | ||
| <Head /> | ||
| <Body> | ||
| <Button | ||
| href="https://example.com" | ||
| style={{ background: "#000", color: "#fff", padding: "12px 20px" }} | ||
| > | ||
| Click me | ||
| </Button> | ||
| </Body> | ||
| </Html> | ||
| ); | ||
| } | ||
|
|
||
| export default MyEmail; | ||
| ``` | ||
|
|
||
| ## 6. Run preview server | ||
|
|
@@ -94,7 +95,7 @@ yarn dev | |
| Visit [localhost:3000](http://localhost:3000) and edit the `emails/MyEmail.tsx` file to see the changes. | ||
|
|
||
| <Frame> | ||
| <img alt="Local Development" src="/images/local-dev.jpg" /> | ||
| <img alt="Local Development" src="/images/manual-setup-dev.png" /> | ||
| </Frame> | ||
|
|
||
| ## 8. Try it yourself | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Documentation inconsistency: The code block filename was changed to
email.tsxbut the instruction text above still says to createMyEmail.tsx. Users following this guide will be confused about which filename to use. Consider updating the instruction text to match the new filename.Prompt for AI agents