Skip to content

Commit ddcea57

Browse files
Merge pull request #229 from reactjs/sync-6be2b020
Sync with react.dev @ 6be2b02
2 parents 4f3d82e + 3ffc844 commit ddcea57

80 files changed

Lines changed: 2211 additions & 477 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/docs-writer-blog/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ See [How to Upgrade to React X.Y](/blog/YYYY/MM/DD/react-xy-upgrade-guide) for s
159159

160160
### React {/*react*/}
161161

162-
* Add `useNewHook` for [purpose]. ([#12345](https://github.com/facebook/react/pull/12345) by [@contributor](https://github.com/contributor))
162+
* Add `useNewHook` for [purpose]. ([#12345](https://github.com/react/react/pull/12345) by [@contributor](https://github.com/contributor))
163163

164164
---
165165

@@ -603,7 +603,7 @@ npm install react@latest react-dom@latest
603603

604604
| Type | Pattern |
605605
|------|---------|
606-
| GitHub PR | `[#12345](https://github.com/facebook/react/pull/12345)` |
606+
| GitHub PR | `[#12345](https://github.com/react/react/pull/12345)` |
607607
| GitHub user | `[@username](https://github.com/username)` |
608608
| Twitter/X | `[@username](https://x.com/username)` |
609609
| Bluesky | `[Name](https://bsky.app/profile/handle)` |
@@ -623,8 +623,8 @@ For more information, see the docs for [`useActionState`](/reference/react/useAc
623623
### Bullet Pattern
624624

625625
```markdown
626-
* Add `useTransition` for concurrent rendering. ([#10426](https://github.com/facebook/react/pull/10426) by [@acdlite](https://github.com/acdlite))
627-
* Fix `useReducer` observing incorrect props. ([#22445](https://github.com/facebook/react/pull/22445) by [@josephsavona](https://github.com/josephsavona))
626+
* Add `useTransition` for concurrent rendering. ([#10426](https://github.com/react/react/pull/10426) by [@acdlite](https://github.com/acdlite))
627+
* Fix `useReducer` observing incorrect props. ([#22445](https://github.com/react/react/pull/22445) by [@josephsavona](https://github.com/josephsavona))
628628
```
629629

630630
**Structure:** `Verb` + backticked API + description + `([#PR](url) by [@user](url))`

.claude/skills/react-expert/SKILL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This skill produces exhaustive documentation research on any React API or concep
3232
2. **React Source Code** - Warnings, errors, implementation details
3333
3. **Git History** - Commit messages with context
3434
4. **GitHub PRs & Comments** - Design rationale (via `gh` CLI)
35-
5. **GitHub Issues** - Confusion/questions (facebook/react + reactjs/react.dev)
35+
5. **GitHub Issues** - Confusion/questions (react/react + reactjs/react.dev)
3636
6. **React Working Group** - Design discussions for newer APIs
3737
7. **Flow Types** - Source of truth for type signatures
3838
8. **TypeScript Types** - Note discrepancies with Flow
@@ -51,7 +51,7 @@ First, ensure the React repo is available locally:
5151
if [ -d ".claude/react" ]; then
5252
cd .claude/react && git pull origin main
5353
else
54-
git clone --depth=100 https://github.com/facebook/react.git .claude/react
54+
git clone --depth=100 https://github.com/react/react.git .claude/react
5555
fi
5656
```
5757

@@ -71,8 +71,8 @@ Spawn these agents IN PARALLEL using the Task tool. Each agent receives the skep
7171
| test-explorer | Explore | Test files for usage patterns | Search `.claude/react/packages/*/src/__tests__/` for test files mentioning the topic. Extract actual usage examples WITH file paths and line numbers. |
7272
| source-explorer | Explore | Warnings/errors in source | Search `.claude/react/packages/*/src/` for console.error, console.warn, and error messages mentioning the topic. Document trigger conditions. |
7373
| git-historian | Explore | Commit messages | Run `git log --all --grep="<topic>" --oneline -50` in `.claude/react`. Read full commit messages for context. |
74-
| pr-researcher | Explore | PRs introducing/modifying API | Run `gh pr list -R facebook/react --search "<topic>" --state all --limit 20`. Read key PR descriptions and comments. |
75-
| issue-hunter | Explore | Issues showing confusion | Search issues in both `facebook/react` and `reactjs/react.dev` repos. Look for common questions and misunderstandings. |
74+
| pr-researcher | Explore | PRs introducing/modifying API | Run `gh pr list -R react/react --search "<topic>" --state all --limit 20`. Read key PR descriptions and comments. |
75+
| issue-hunter | Explore | Issues showing confusion | Search issues in both `react/react` and `reactjs/react.dev` repos. Look for common questions and misunderstandings. |
7676
| types-inspector | Explore | Flow + TypeScript signatures | Find Flow types in `.claude/react/packages/*/src/*.js` (look for `@flow` annotations). Find TS types in `.claude/react/packages/*/index.d.ts`. Note discrepancies. |
7777

7878
### Step 3: Agent Prompts
@@ -164,8 +164,8 @@ CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in PRs.
164164

165165
Your task: Find PRs that introduced or modified <TOPIC>.
166166

167-
1. Run: gh pr list -R facebook/react --search "<topic>" --state all --limit 20 --json number,title,url
168-
2. For promising PRs, read details: gh pr view <number> -R facebook/react
167+
1. Run: gh pr list -R react/react --search "<topic>" --state all --limit 20 --json number,title,url
168+
2. For promising PRs, read details: gh pr view <number> -R react/react
169169
3. Look for:
170170
- The original RFC/motivation
171171
- Design discussions in comments
@@ -189,7 +189,7 @@ CRITICAL: Do NOT rely on your prior knowledge. Only report what you find in issu
189189

190190
Your task: Find issues that reveal common confusion about <TOPIC>.
191191

192-
1. Search facebook/react: gh issue list -R facebook/react --search "<topic>" --state all --limit 20 --json number,title,url
192+
1. Search react/react: gh issue list -R react/react --search "<topic>" --state all --limit 20 --json number,title,url
193193
2. Search reactjs/react.dev: gh issue list -R reactjs/react.dev --search "<topic>" --state all --limit 20 --json number,title,url
194194
3. For each issue, identify:
195195
- What the user was confused about
@@ -199,7 +199,7 @@ Your task: Find issues that reveal common confusion about <TOPIC>.
199199
Format your output as:
200200
## Common Confusion
201201
### Issue #<number>: <title>
202-
**Repo:** <facebook/react or reactjs/react.dev>
202+
**Repo:** <react/react or reactjs/react.dev>
203203
**Confusion:** <what they misunderstood>
204204
**Resolution:** <correct understanding>
205205
**Gotcha:** <if applicable>

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
contact_links:
22
- name: 📃 Bugs in React
3-
url: https://github.com/facebook/react/issues/new/choose
3+
url: https://github.com/react/react/issues/new/choose
44
about: This issue tracker is not for bugs in React. Please file React issues here.
55
- name: 🤔 Questions and Help
66
url: https://reactjs.org/community/support.html

.github/workflows/discord_notify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions: {}
88

99
jobs:
1010
check_maintainer:
11-
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
11+
uses: react/react/.github/workflows/shared_check_maintainer.yml@main
1212
permissions:
1313
# Used by check_maintainer
1414
contents: read

.github/workflows/label_core_team_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
check_maintainer:
15-
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
15+
uses: react/react/.github/workflows/shared_check_maintainer.yml@main
1616
permissions:
1717
# Used by check_maintainer
1818
contents: read

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ public/rss.xml
4646

4747
# worktrees
4848
.worktrees/
49+
50+
# Generated OG images (scripts/generateOgImages.mjs)
51+
public/images/og/

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"analyze": "ANALYZE=true next build",
88
"dev": "next-remote-watch ./src/content",
99
"prebuild:rsc": "node scripts/buildRscWorker.mjs",
10-
"build": "node scripts/buildRscWorker.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs",
10+
"build": "node scripts/buildRscWorker.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs && node ./scripts/generateOgImages.mjs",
1111
"lint": "next lint && eslint \"src/content/**/*.md\"",
1212
"lint:fix": "next lint --fix && eslint \"src/content/**/*.md\" --fix",
1313
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
@@ -51,6 +51,7 @@
5151
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
5252
"@babel/preset-react": "^7.18.6",
5353
"@mdx-js/mdx": "^2.1.3",
54+
"@resvg/resvg-js": "^2.6.2",
5455
"@types/body-scroll-lock": "^2.6.1",
5556
"@types/classnames": "^2.2.10",
5657
"@types/debounce": "^1.2.1",
@@ -102,6 +103,7 @@
102103
"retext": "^7.0.1",
103104
"retext-smartypants": "^4.0.0",
104105
"rss": "^1.2.2",
106+
"satori": "^0.26.0",
105107
"tailwindcss": "^3.4.1",
106108
"typescript": "^5.7.2",
107109
"unist-util-visit": "^2.0.3",
59.4 KB
Binary file not shown.
59.6 KB
Binary file not shown.
16.6 KB
Loading

0 commit comments

Comments
 (0)