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..ef43b2c8f 100644 --- a/.github/workflows/site_lint.yml +++ b/.github/workflows/site_lint.yml @@ -13,14 +13,14 @@ jobs: lint: runs-on: ubuntu-latest - name: Lint on node 20.x and ubuntu-latest + name: Lint on node 24.x and ubuntu-latest 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/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..b5ebcbace 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,6 +36,7 @@ React ๋ฌธ์„œ ๊ธฐ์—ฌ์— ๊ด€์‹ฌ์„ ๊ฐ€์ ธ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! ES5๋งŒ ๋‹ค๋ฃจ๋Š” ๊ฒฝ์šฐ๋ผ๋ฉด ์ด ๊ทœ์น™์€ ๋ฌด์‹œํ•˜์„ธ์š”. +<<<<<<< HEAD #### ES5์˜ ๊ธฐ๋Šฅ๋งŒ์œผ๋กœ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒฝ์šฐ, ES6์˜ ๊ธฐ๋Šฅ์„ ๋ฌด์กฐ๊ฑด์ ์œผ๋กœ ์‚ฌ์šฉํ•˜์ง€ ๋งˆ์„ธ์š” ES6๊ฐ€ ์•„์ง ๋‚ฏ์„  ์‚ฌ๋žŒ๋„ ๋งŽ์Šต๋‹ˆ๋‹ค. ์ด๋ฏธ ์—ฌ๋Ÿฌ ๊ณณ์—์„œ `const` / `let`, ํด๋ž˜์Šค, ํ™”์‚ดํ‘œ ํ•จ์ˆ˜ ๋“ฑ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๊ทธ์— ์ƒ์‘ํ•˜๋Š” ES5 ์ฝ”๋“œ๊ฐ€ ๊ฐ„๋‹จํ•˜๊ณ  ๊ฐ€๋…์„ฑ์ด ์ข‹๋‹ค๋ฉด ES5๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋„ ๊ณ ๋ คํ•˜์„ธ์š”. @@ -71,6 +72,11 @@ class MyComponent extends React.Component { ``` ์‹คํ—˜์ ์ธ ์ œ์•ˆExperimental Proposal์— ๋Œ€ํ•ด ์„ค๋ช…ํ•˜๋Š” ๊ฒฝ์šฐ๋ผ๋ฉด ์˜ˆ์™ธ๋กœ ํ•˜๋˜, ์ฝ”๋“œ์™€ ์ฃผ๋ณ€ ๊ธ€์—์„œ ์‹คํ—˜์ ์ž„Experimental์„ ๋ช…์‹œํ•˜์„ธ์š”. +======= +#### Prefer readable syntax. + +Choose syntax that makes each example easier to follow. Prefer named `function` declarations over `const myFunction = () => ...` arrows for top-level functions. Use arrow functions when they make callbacks easier to read. In class components, arrow functions can also preserve the component's `this` value. +>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f ### ์Šคํƒ€์ผ diff --git a/README.md b/README.md index 4cbaabe18..f2f15fb20 100644 --- a/README.md +++ b/README.md @@ -22,15 +22,28 @@ ### ์‚ฌ์ „ ์ค€๋น„ 1. Git +<<<<<<< HEAD 1. Node: v16.8.0 ์ด์ƒ์˜ ๋ชจ๋“  ๋ฒ„์ „ 1. Yarn v1(`yarn@1.22.22`): [Yarn ์„ค์น˜ ์•ˆ๋‚ด](https://yarnpkg.com/lang/en/docs/install/) ์ฐธ๊ณ  1. ํฌํฌForkํ•œ ๊ฐœ์ธ ์ €์žฅ์†Œ 1. ๋กœ์ปฌ์— ํด๋ก Cloneํ•œ [ko.react.dev ์ €์žฅ์†Œ](https://github.com/reactjs/ko.react.dev) +======= +1. Node: v24 or greater +1. Yarn Classic: See [Yarn website for installation instructions](https://classic.yarnpkg.com/en/docs/install/) +1. A fork of the repo (for any contributions) +1. A clone of the [react.dev repo](https://github.com/reactjs/react.dev) on your local machine +>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f ### ์„ค์น˜ +<<<<<<< HEAD 1. `cd ko.react.dev`๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ํ”„๋กœ์ ํŠธ ๊ฒฝ๋กœ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. 1. `yarn` ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ npm ์˜์กด์„ฑ ๋ชจ๋“ˆ๋“ค์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. +======= +1. `cd react.dev` to go into the project root +2. `git remote add my-fork-name https://github.com/YOUR_USERNAME/react.dev.git` to add your fork as a remote. Replace `YOUR_USERNAME` with your GitHub username. You only need to do this once. +3. `yarn` to install the website's npm dependencies +>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f ### ๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ @@ -51,11 +64,19 @@ ### ์ˆ˜์ •ํ•˜๊ธฐ +<<<<<<< HEAD 1. ["๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ"](#๊ฐœ๋ฐœ-์„œ๋ฒ„-์‹คํ–‰ํ•˜๊ธฐ) ๋ถ€๋ถ„์„ ๋”ฐ๋ฆ…๋‹ˆ๋‹ค. 1. ํŒŒ์ผ์„ ์ €์žฅํ•˜๊ณ  ๋ธŒ๋ผ์šฐ์ €์—์„œ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. 1. `src` ์•ˆ์— ์žˆ๋Š” React ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์ˆ˜์ •๋  ๊ฒฝ์šฐ hot-reload๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. 1. `content` ์•ˆ์— ์žˆ๋Š” ๋งˆํฌ๋‹ค์šด ํŒŒ์ผ์ด ์ˆ˜์ •๋  ๊ฒฝ์šฐ hot-reload๊ฐ€ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. 1. ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, `.cache` ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ œ๊ฑฐํ•œ ํ›„ ์„œ๋ฒ„๋ฅผ ์žฌ์‹œ์ž‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. +======= +1. Follow the ["Running locally"](#running-locally) instructions +1. Save the files and check in the browser + 1. Changes to React components in `src` will hot-reload + 1. Changes to markdown files in `src/content` will hot-reload + 1. If working with plugins, you may need to remove the `node_modules/.cache/react-docs-mdx` directory and restart the server +>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f ### ์ˆ˜์ •์‚ฌํ•ญ ๊ฒ€์‚ฌํ•˜๊ธฐ @@ -72,7 +93,11 @@ ## ๋ฌธ์ œ ํ•ด๊ฒฐํ•˜๊ธฐ +<<<<<<< HEAD `yarn cache-reset` ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋กœ์ปฌ ์บ์‹œ๋ฅผ ์ดˆ๊ธฐํ™”ํ•ฉ๋‹ˆ๋‹ค. +======= +If you are interested in translating `react.dev`, please see the current translation efforts [here](https://react.dev/community/translations). +>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f ## ๋ฒˆ์—ญ 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"> - +