diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index de2bfc362..ab8a7d4fe 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -3,5 +3,5 @@ contact_links: url: https://github.com/react/react/issues/new/choose about: This issue tracker is not for bugs in React. Please file React issues here. - name: ๐Ÿค” Questions and Help - url: https://reactjs.org/community/support.html + url: https://react.dev/community about: This issue tracker is not for support questions. Please refer to the React community's help and discussion forums. diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 83e7f2e8a..1620c50f6 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -18,7 +18,7 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '24.x' cache: yarn cache-dependency-path: yarn.lock @@ -26,7 +26,7 @@ jobs: uses: actions/cache@v4 with: path: '**/node_modules' - key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + key: node_modules-24-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - name: Install deps run: yarn install --frozen-lockfile diff --git a/.github/workflows/site_lint.yml b/.github/workflows/site_lint.yml index 81a04601c..31669e837 100644 --- a/.github/workflows/site_lint.yml +++ b/.github/workflows/site_lint.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 20.x + - name: Use Node.js 24.x uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 24.x cache: yarn cache-dependency-path: yarn.lock @@ -28,7 +28,7 @@ jobs: uses: actions/cache@v4 with: path: '**/node_modules' - key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + key: node_modules-24-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - name: Install deps run: yarn install --frozen-lockfile diff --git a/.github/workflows/textlint_lint.yml b/.github/workflows/textlint_lint.yml index 0dcf8610d..1c80a2738 100644 --- a/.github/workflows/textlint_lint.yml +++ b/.github/workflows/textlint_lint.yml @@ -32,7 +32,7 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 24.x cache: yarn - name: Set up cache diff --git a/.github/workflows/textlint_test.yml b/.github/workflows/textlint_test.yml index 10af72be0..75db1759e 100644 --- a/.github/workflows/textlint_test.yml +++ b/.github/workflows/textlint_test.yml @@ -28,7 +28,7 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 24.x cache: yarn - name: Set up cache diff --git a/CLAUDE.md b/CLAUDE.md index 3a081e6d5..3943097cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code when working with this repository. ## Project Overview -This is the React documentation website (react.dev), built with Next.js 15.1.11 and React 19. Documentation is written in MDX format. +This is the React documentation website (react.dev), built with Next.js 15.1.12 and React 19. Documentation is written in MDX format. ## Development Commands @@ -47,6 +47,6 @@ When editing files in `src/content/`, the appropriate skill will be auto-suggest For MDX components (DeepDive, Pitfall, Note, etc.), invoke `/docs-components`. For Sandpack code examples, invoke `/docs-sandpack`. -See `.claude/docs/react-docs-patterns.md` for comprehensive style guidelines. +See `.claude/skills/` for comprehensive style guidelines. Prettier is used for formatting (config in `.prettierrc`). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 96229a467..0b498a895 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,41 +36,9 @@ React ๋ฌธ์„œ ๊ธฐ์—ฌ์— ๊ด€์‹ฌ์„ ๊ฐ€์ ธ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! ES5๋งŒ ๋‹ค๋ฃจ๋Š” ๊ฒฝ์šฐ๋ผ๋ฉด ์ด ๊ทœ์น™์€ ๋ฌด์‹œํ•˜์„ธ์š”. -#### ES5์˜ ๊ธฐ๋Šฅ๋งŒ์œผ๋กœ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒฝ์šฐ, ES6์˜ ๊ธฐ๋Šฅ์„ ๋ฌด์กฐ๊ฑด์ ์œผ๋กœ ์‚ฌ์šฉํ•˜์ง€ ๋งˆ์„ธ์š” +#### ์ฝ๊ธฐ ์‰ฌ์šด ๊ตฌ๋ฌธ์„ ์„ ํ˜ธํ•ฉ๋‹ˆ๋‹ค -ES6๊ฐ€ ์•„์ง ๋‚ฏ์„  ์‚ฌ๋žŒ๋„ ๋งŽ์Šต๋‹ˆ๋‹ค. ์ด๋ฏธ ์—ฌ๋Ÿฌ ๊ณณ์—์„œ `const` / `let`, ํด๋ž˜์Šค, ํ™”์‚ดํ‘œ ํ•จ์ˆ˜ ๋“ฑ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๊ทธ์— ์ƒ์‘ํ•˜๋Š” ES5 ์ฝ”๋“œ๊ฐ€ ๊ฐ„๋‹จํ•˜๊ณ  ๊ฐ€๋…์„ฑ์ด ์ข‹๋‹ค๋ฉด ES5๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋„ ๊ณ ๋ คํ•˜์„ธ์š”. - -ํŠนํžˆ ์ตœ์ƒ์œ„ ํ•จ์ˆ˜์—์„œ๋Š” `const myFunction = () => ...`๊ณผ ๊ฐ™์€ ํ™”์‚ดํ‘œ ํ•จ์ˆ˜ ๋Œ€์‹ ์— ์ด๋ฆ„ ์žˆ๋Š” `function` ์„ ์–ธ์„ ์„ ํ˜ธํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ปดํฌ๋„ŒํŠธ ๋‚ด `this` ์ปจํ…์ŠคํŠธ๋ฅผ ์œ ์ง€ํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ์—๋Š” ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. ์ƒˆ๋กœ์šด ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ์žฅ๋‹จ์ ์„ ๋ชจ๋‘ ๋”ฐ์ ธ๋ณด๊ณ  ๊ฒฐ์ •ํ•˜์„ธ์š”. - -#### ์•„์ง ํ‘œ์ค€ํ™”๋˜์ง€ ์•Š์€ ๊ธฐ๋Šฅ์€ ์‚ฌ์šฉํ•˜์ง€ ๋งˆ์„ธ์š” - -์˜ˆ๋ฅผ ๋“ค์–ด, ๋‹ค์Œ ์ฝ”๋“œ์ฒ˜๋Ÿผ ์ž‘์„ฑํ•˜์ง€ ๋งˆ์„ธ์š”. - -```js -class MyComponent extends React.Component { - state = {value: ''}; - handleChange = (e) => { - this.setState({value: e.target.value}); - }; -} -``` - -๋Œ€์‹ , ๋‹ค์Œ์ฒ˜๋Ÿผ ์ž‘์„ฑํ•˜์„ธ์š”. - -```js -class MyComponent extends React.Component { - constructor(props) { - super(props); - this.handleChange = this.handleChange.bind(this); - this.state = {value: ''}; - } - handleChange(e) { - this.setState({value: e.target.value}); - } -} -``` - -์‹คํ—˜์ ์ธ ์ œ์•ˆExperimental Proposal์— ๋Œ€ํ•ด ์„ค๋ช…ํ•˜๋Š” ๊ฒฝ์šฐ๋ผ๋ฉด ์˜ˆ์™ธ๋กœ ํ•˜๋˜, ์ฝ”๋“œ์™€ ์ฃผ๋ณ€ ๊ธ€์—์„œ ์‹คํ—˜์ ์ž„Experimental์„ ๋ช…์‹œํ•˜์„ธ์š”. +๊ฐ ์˜ˆ์‹œ๋ฅผ ์‰ฝ๊ฒŒ ๋”ฐ๋ผ๊ฐˆ ์ˆ˜ ์žˆ๋Š” ๊ตฌ๋ฌธ์„ ์„ ํƒํ•˜์„ธ์š”. ์ตœ์ƒ์œ„ ํ•จ์ˆ˜์—์„œ๋Š” `const myFunction = () => ...`๊ณผ ๊ฐ™์€ ํ™”์‚ดํ‘œ ํ•จ์ˆ˜ ๋Œ€์‹ ์— ์ด๋ฆ„ ์žˆ๋Š” `function` ์„ ์–ธ์„ ์„ ํ˜ธํ•ฉ๋‹ˆ๋‹ค. ์ฝœ๋ฐฑ์„ ๋” ์ฝ๊ธฐ ์‰ฝ๊ฒŒ ๋งŒ๋“ค์–ด ์ฃผ๋Š” ๊ฒฝ์šฐ์—๋Š” ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. ํด๋ž˜์Šค ์ปดํฌ๋„ŒํŠธ์—์„œ ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋Š” ์ปดํฌ๋„ŒํŠธ์˜ `this` ๊ฐ’์„ ์œ ์ง€ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ### ์Šคํƒ€์ผ diff --git a/README.md b/README.md index 4cbaabe18..1f8a2593f 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,15 @@ ### ์‚ฌ์ „ ์ค€๋น„ 1. Git -1. Node: v16.8.0 ์ด์ƒ์˜ ๋ชจ๋“  ๋ฒ„์ „ -1. Yarn v1(`yarn@1.22.22`): [Yarn ์„ค์น˜ ์•ˆ๋‚ด](https://yarnpkg.com/lang/en/docs/install/) ์ฐธ๊ณ  +1. Node: v24 ์ด์ƒ์˜ ๋ชจ๋“  ๋ฒ„์ „ +1. Yarn v1(`yarn@1.22.22`): [Yarn ์„ค์น˜ ์•ˆ๋‚ด](https://classic.yarnpkg.com/en/docs/install/) ์ฐธ๊ณ  1. ํฌํฌForkํ•œ ๊ฐœ์ธ ์ €์žฅ์†Œ 1. ๋กœ์ปฌ์— ํด๋ก Cloneํ•œ [ko.react.dev ์ €์žฅ์†Œ](https://github.com/reactjs/ko.react.dev) ### ์„ค์น˜ 1. `cd ko.react.dev`๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ํ”„๋กœ์ ํŠธ ๊ฒฝ๋กœ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. +1. `git remote add my-fork-name https://github.com/YOUR_USERNAME/ko.react.dev.git`์„ ์‹คํ–‰ํ•˜์—ฌ ํฌํฌํ•œ ์ €์žฅ์†Œ๋ฅผ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. `YOUR_USERNAME`์„ ๋ณธ์ธ์˜ GitHub ์‚ฌ์šฉ์ž ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•˜์„ธ์š”. ์ด ์ž‘์—…์€ ํ•œ ๋ฒˆ๋งŒ ์ˆ˜ํ–‰ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. 1. `yarn` ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ npm ์˜์กด์„ฑ ๋ชจ๋“ˆ๋“ค์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. ### ๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ @@ -54,8 +55,8 @@ 1. ["๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ"](#๊ฐœ๋ฐœ-์„œ๋ฒ„-์‹คํ–‰ํ•˜๊ธฐ) ๋ถ€๋ถ„์„ ๋”ฐ๋ฆ…๋‹ˆ๋‹ค. 1. ํŒŒ์ผ์„ ์ €์žฅํ•˜๊ณ  ๋ธŒ๋ผ์šฐ์ €์—์„œ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. 1. `src` ์•ˆ์— ์žˆ๋Š” React ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์ˆ˜์ •๋  ๊ฒฝ์šฐ hot-reload๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. -1. `content` ์•ˆ์— ์žˆ๋Š” ๋งˆํฌ๋‹ค์šด ํŒŒ์ผ์ด ์ˆ˜์ •๋  ๊ฒฝ์šฐ hot-reload๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. -1. ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, `.cache` ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ œ๊ฑฐํ•œ ํ›„ ์„œ๋ฒ„๋ฅผ ์žฌ์‹œ์ž‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. +1. `src/content` ์•ˆ์— ์žˆ๋Š” ๋งˆํฌ๋‹ค์šด ํŒŒ์ผ์ด ์ˆ˜์ •๋  ๊ฒฝ์šฐ hot-reload๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. +1. ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, `node_modules/.cache/react-docs-mdx` ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ œ๊ฑฐํ•œ ํ›„ ์„œ๋ฒ„๋ฅผ ์žฌ์‹œ์ž‘ํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ### ์ˆ˜์ •์‚ฌํ•ญ ๊ฒ€์‚ฌํ•˜๊ธฐ diff --git a/next-env.d.ts b/next-env.d.ts index 52e831b43..254b73c16 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/package.json b/package.json index 5ea848fbc..b4d970e72 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "webpack-bundle-analyzer": "^4.5.0" }, "engines": { - "node": ">=16.8.0" + "node": ">=24" }, "nextBundleAnalysis": { "budget": null, diff --git a/src/components/MDX/TeamMember.tsx b/src/components/MDX/TeamMember.tsx index 2716fa2d1..3be1fa7a7 100644 --- a/src/components/MDX/TeamMember.tsx +++ b/src/components/MDX/TeamMember.tsx @@ -68,7 +68,7 @@ function GroupBadges({group}: {group: string}) { ); } -// TODO: good alt text for images/links +// TODO: good alt text for images export function TeamMember({ name, title, @@ -113,7 +113,7 @@ export function TeamMember({ aria-label={`${name} on Twitter`} href={`https://twitter.com/${twitter}`} className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center"> - +