Skip to content

Add initial Rules of React docs - #6680

Merged
poteto merged 37 commits into
mainfrom
lt/rules-of-react
Mar 15, 2024
Merged

Add initial Rules of React docs#6680
poteto merged 37 commits into
mainfrom
lt/rules-of-react

Conversation

@poteto

Copy link
Copy Markdown
Member

@vercel

vercelBot commented Mar 5, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewUpdated (UTC)
react-dev✅ Ready (Inspect)Visit PreviewMar 15, 2024 3:55pm

@github-actions

github-actionsBot commented Mar 5, 2024

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

PageSize (compressed)First Load
/[[...markdownPath]]81.52 KB(🟡 +87 B)185.42 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Comment threadsrc/content/reference/rules/index.md Outdated
Comment threadsrc/content/reference/rules/components-must-be-idempotent.md Outdated
Comment threadsrc/content/reference/rules/never-call-component-functions-directly.md Outdated
Comment threadsrc/content/reference/rules/never-call-component-functions-directly.md Outdated
Comment threadsrc/content/reference/rules/never-pass-around-hooks-as-regular-values.md Outdated

@eps1loneps1lon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it. Finally something to link to 🥳

Comment threadsrc/content/reference/rules/index.md Outdated
Comment threadsrc/content/reference/rules/side-effects-must-run-outside-of-render.md Outdated
Comment threadsrc/content/reference/rules/never-call-component-functions-directly.md Outdated
Comment threadsrc/content/reference/rules/never-pass-around-hooks-as-regular-values.md Outdated
Comment threadsrc/content/reference/rules/never-pass-around-hooks-as-regular-values.md Outdated
Comment threadsrc/content/reference/rules/only-call-hooks-at-the-top-level.md Outdated
Comment threadsrc/content/reference/rules/index.md Outdated
@potetopoteto changed the title WIP for early feedbackAdd initial Rules of React docsMar 12, 2024
@poteto
poteto marked this pull request as ready for review March 12, 2024 16:19
Comment threadsrc/sidebarReference.json
Comment threadsrc/content/reference/rules/index.md Outdated
Comment threadsrc/content/reference/rules/index.md Outdated
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@poteto@kassens@rickhanlonii@josephsavona@mattcarrollcode@jackpope@eps1lon@harish-sethuraman@pwbriggs@facebook-github-bot@gsathya