Skip to content

Commit e61aa4d

Browse files
merging all conflicts
2 parents 89f79e9 + 46a54e0 commit e61aa4d

66 files changed

Lines changed: 1844 additions & 246 deletions

Some content is hidden

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

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ contact_links:
33
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
6-
url: https://reactjs.org/community/support.html
6+
url: https://react.dev/community
77
about: This issue tracker is not for support questions. Please refer to the React community's help and discussion forums.

‎.github/workflows/analyze.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
- name: Set up node
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20.x'
21+
node-version: '24.x'
2222
cache: yarn
2323
cache-dependency-path: yarn.lock
2424

2525
- name: Restore cached node_modules
2626
uses: actions/cache@v4
2727
with:
2828
path: '**/node_modules'
29-
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
29+
key: node_modules-24-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
3030

3131
- name: Install deps
3232
run: yarn install --frozen-lockfile

‎.github/workflows/site_lint.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515

16-
name: Lint on node 20.x and ubuntu-latest
16+
name: Lint on node 24.x and ubuntu-latest
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Use Node.js 20.x
20+
- name: Use Node.js 24.x
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 20.x
23+
node-version: 24.x
2424
cache: yarn
2525
cache-dependency-path: yarn.lock
2626

2727
- name: Restore cached node_modules
2828
uses: actions/cache@v4
2929
with:
3030
path: '**/node_modules'
31-
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
31+
key: node_modules-24-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
3232

3333
- name: Install deps
3434
run: yarn install --frozen-lockfile

‎CLAUDE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code when working with this repository.
44

55
## Project Overview
66

7-
This is the React documentation website (react.dev), built with Next.js 15.1.11 and React 19. Documentation is written in MDX format.
7+
This is the React documentation website (react.dev), built with Next.js 15.1.12 and React 19. Documentation is written in MDX format.
88

99
## Development Commands
1010

@@ -47,6 +47,6 @@ When editing files in `src/content/`, the appropriate skill will be auto-suggest
4747
For MDX components (DeepDive, Pitfall, Note, etc.), invoke `/docs-components`.
4848
For Sandpack code examples, invoke `/docs-sandpack`.
4949

50-
See `.claude/docs/react-docs-patterns.md` for comprehensive style guidelines.
50+
See `.claude/skills/` for comprehensive style guidelines.
5151

5252
Prettier is used for formatting (config in `.prettierrc`).

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ React 문서 기여에 관심을 가져주셔서 감사합니다!
3636

3737
ES5만 다루는 경우라면 이 규칙은 무시하세요.
3838

39+
<<<<<<< HEAD
3940
#### ES5의 기능만으로 간단하게 작성할 수 있는 경우, ES6의 기능을 무조건적으로 사용하지 마세요
4041

4142
ES6가 아직 낯선 사람도 많습니다. 이미 여러 곳에서 `const` / `let`, 클래스, 화살표 함수 등을 사용하고 있지만, 그에 상응하는 ES5 코드가 간단하고 가독성이 좋다면 ES5를 사용하는 것도 고려하세요.
@@ -71,6 +72,11 @@ class MyComponent extends React.Component {
7172
```
7273

7374
실험적인 제안<sup>Experimental Proposal</sup>에 대해 설명하는 경우라면 예외로 하되, 코드와 주변 글에서 실험적임<sup>Experimental</sup>을 명시하세요.
75+
=======
76+
#### Prefer readable syntax.
77+
78+
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.
79+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
7480
7581
### 스타일
7682

‎README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,28 @@
2222
### 사전 준비
2323

2424
1. Git
25+
<<<<<<< HEAD
2526
1. Node: v16.8.0 이상의 모든 버전
2627
1. Yarn v1(`yarn@1.22.22`): [Yarn 설치 안내](https://yarnpkg.com/lang/en/docs/install/) 참고
2728
1. 포크<sup>Fork</sup>한 개인 저장소
2829
1. 로컬에 클론<sup>Clone</sup>한 [ko.react.dev 저장소](https://github.com/reactjs/ko.react.dev)
30+
=======
31+
1. Node: v24 or greater
32+
1. Yarn Classic: See [Yarn website for installation instructions](https://classic.yarnpkg.com/en/docs/install/)
33+
1. A fork of the repo (for any contributions)
34+
1. A clone of the [react.dev repo](https://github.com/reactjs/react.dev) on your local machine
35+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
2936
3037
### 설치
3138

39+
<<<<<<< HEAD
3240
1. `cd ko.react.dev`를 실행하여 프로젝트 경로로 이동합니다.
3341
1. `yarn` 명령어를 실행하여 npm 의존성 모듈들을 설치합니다.
42+
=======
43+
1. `cd react.dev` to go into the project root
44+
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.
45+
3. `yarn` to install the website's npm dependencies
46+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
3447
3548
### 개발 서버 실행하기
3649

@@ -51,11 +64,19 @@
5164

5265
### 수정하기
5366

67+
<<<<<<< HEAD
5468
1. ["개발 서버 실행하기"](#개발-서버-실행하기) 부분을 따릅니다.
5569
1. 파일을 저장하고 브라우저에서 확인합니다.
5670
1. `src` 안에 있는 React 컴포넌트가 수정될 경우 hot-reload가 적용됩니다.
5771
1. `content` 안에 있는 마크다운 파일이 수정될 경우 hot-reload가 적용됩니다.
5872
1. 플러그인을 사용하는 경우, `.cache` 디렉토리를 제거한 후 서버를 재시작해야 합니다.
73+
=======
74+
1. Follow the ["Running locally"](#running-locally) instructions
75+
1. Save the files and check in the browser
76+
1. Changes to React components in `src` will hot-reload
77+
1. Changes to markdown files in `src/content` will hot-reload
78+
1. If working with plugins, you may need to remove the `node_modules/.cache/react-docs-mdx` directory and restart the server
79+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
5980
6081
### 수정사항 검사하기
6182

@@ -72,7 +93,11 @@
7293

7394
## 문제 해결하기
7495

96+
<<<<<<< HEAD
7597
`yarn cache-reset` 명령어를 사용하여 로컬 캐시를 초기화합니다.
98+
=======
99+
If you are interested in translating `react.dev`, please see the current translation efforts [here](https://react.dev/community/translations).
100+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
76101
77102
## 번역
78103

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"webpack-bundle-analyzer": "^4.5.0"
122122
},
123123
"engines": {
124-
"node": ">=16.8.0"
124+
"node": ">=24"
125125
},
126126
"nextBundleAnalysis": {
127127
"budget": null,

‎src/components/MDX/TeamMember.tsx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function GroupBadges({group}: {group: string}) {
6868
);
6969
}
7070

71-
// TODO: good alt text for images/links
71+
// TODO: good alt text for images
7272
export function TeamMember({
7373
name,
7474
title,
@@ -113,7 +113,7 @@ export function TeamMember({
113113
aria-label={`${name} on Twitter`}
114114
href={`https://twitter.com/${twitter}`}
115115
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
116-
<IconTwitter className="pe-1" />
116+
<IconTwitter className="pe-1" aria-hidden="true" />
117117
{twitter}
118118
</ExternalLink>
119119
</div>
@@ -124,7 +124,7 @@ export function TeamMember({
124124
aria-label={`${name} on Threads`}
125125
href={`https://threads.net/${threads}`}
126126
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
127-
<IconThreads className="pe-1" />
127+
<IconThreads className="pe-1" aria-hidden="true" />
128128
{threads}
129129
</ExternalLink>
130130
</div>
@@ -135,27 +135,27 @@ export function TeamMember({
135135
aria-label={`${name} on Bluesky`}
136136
href={`https://bsky.app/profile/${bsky}`}
137137
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
138-
<IconBsky className="pe-1" />
138+
<IconBsky className="pe-1" aria-hidden="true" />
139139
{bsky}
140140
</ExternalLink>
141141
</div>
142142
)}
143143
{github && (
144144
<div className="me-4">
145145
<ExternalLink
146-
aria-label="GitHub Profile"
146+
aria-label={`${name} on GitHub`}
147147
href={`https://github.com/${github}`}
148148
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
149-
<IconGitHub className="pe-1" /> {github}
149+
<IconGitHub className="pe-1" aria-hidden="true" /> {github}
150150
</ExternalLink>
151151
</div>
152152
)}
153153
{personal && (
154154
<ExternalLink
155-
aria-label="Personal Site"
155+
aria-label={`${name}'s personal website`}
156156
href={`https://${personal}`}
157157
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
158-
<IconLink className="pe-1" /> {personal}
158+
<IconLink className="pe-1" aria-hidden="true" /> {personal}
159159
</ExternalLink>
160160
)}
161161
</div>

‎src/content/blog/2023/03/16/introducing-react-dev.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ description: 오늘 React와 React 문서의 새로운 보금자리인 react.dev
4242

4343
**새로운 문서는 Hook을 사용한 React를 처음부터 가르칩니다.** 문서는 두 가지 주요 섹션으로 나뉘어져 있습니다.
4444

45+
<<<<<<< HEAD
4546
* **[React 학습하기](/learn)** 는 React를 기초부터 스스로 학습할 수 있는 과정입니다.
4647
* **[API 참고서](/reference)** 는 모든 React API에 대한 세부 내용과 사용 예시를 제공합니다.
48+
=======
49+
* **[Learn React](/learn)** is a self-paced course that teaches React from scratch.
50+
* **[API Reference](/reference/react)** provides the details and usage examples for every React API.
51+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
4752
4853
각 섹션에서 무슨 내용을 알 수 있는지 자세히 살펴보겠습니다.
4954

@@ -460,13 +465,21 @@ export default function PackingList() {
460465

461466
[API 참고서](/reference/react)에서, 이제 모든 React API는 전용 페이지를 가집니다. 모든 종류의 API들이 포함됩니다.
462467

468+
<<<<<<< HEAD
463469
- [`useState`](/reference/react/useState) 같은 내장 Hook
464470
- [`<Suspense>`](/reference/react/Suspense) 같은 내장 컴포넌트
465471
- [`<input>`](/reference/react-dom/components/input) 같은 브라우저 내장 컴포넌트
466472
- [`renderToPipeableStream`](/reference/react-dom/server/renderToReadableStream) 같은 프레임워크 지향 API
467473
- [`memo`](/reference/react/memo) 같은 그 밖의 React API
468474
r
469475
모든 API 페이지가 *레퍼런스* 와 *사용법*을 포함하는 최소 두 개의 세그먼트로 나뉘어 있다는 것을 알 수 있습니다.
476+
=======
477+
- Built-in Hooks like [`useState`](/reference/react/useState).
478+
- Built-in components like [`<Suspense>`](/reference/react/Suspense).
479+
- Built-in browser components like [`<input>`](/reference/react-dom/components/input).
480+
- Framework-oriented APIs like [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream).
481+
- Other React APIs like [`memo`](/reference/react/memo).
482+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
470483
471484
[레퍼런스](/reference/react/useState#reference)는 인자와 반환 값을 나열하여 형식적인 API 서명을 설명합니다. 이는 간결하지만, 해당 API에 익숙하지 않다면 약간 추상적으로 느껴질 수 있습니다. 이것은 API를 어떻게 사용하는지가 아닌, API가 무엇을 하는지를 설명합니다.
472485

@@ -608,7 +621,11 @@ button { display: block; margin-top: 10px; }
608621

609622
</Recipes>
610623

624+
<<<<<<< HEAD
611625
또한 몇몇 API 페이지는 (일반적인 문제에 대한) [트러블슈팅](/reference/react/useEffect#troubleshooting)과 (더 이상 사용하지 않는 API와 관련된) [대안](/reference/react-dom/findDOMNode#alternatives)을 포함하고 있습니다.
626+
=======
627+
Some API pages also include [Troubleshooting](/reference/react/useEffect#troubleshooting) (for common problems) and [Alternatives](https://18.react.dev/reference/react-dom/findDOMNode#alternatives) (for deprecated APIs).
628+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
612629
613630
이러한 접근 방식이 API 참고서를 단순히 인자를 찾는 용도뿐만 아니라, 각 API가 어떤 다양한 작업을 수행할 수 있는지, 어떻게 다른 API와 연결되어 있는지를 확인하는 데 유용하게 될 것을 기대합니다.
614631

‎src/content/blog/2024/04/25/react-19-upgrade-guide.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,11 @@ const ref = useRef<number>(null);
639639
ref.current = 1;
640640
```
641641

642+
<<<<<<< HEAD
642643
`MutableRef`는 이제 사용 중단되었으며 `useRef`는 항상 단일 `RefObject` 타입을 반환합니다.
644+
=======
645+
`MutableRefObject` is now deprecated in favor of a single `RefObject` type which `useRef` will always return:
646+
>>>>>>> 46a54e0592729712b7640308b53268e84fdc7c9f
643647
644648
```ts
645649
interface RefObject<T> {

0 commit comments

Comments
 (0)