Skip to content

Commit f8608eb

Browse files
committed
docs(en): merging all conflicts
2 parents 6f1ae3b + 4bea66b commit f8608eb

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

src/content/learn/creating-a-react-app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ Next.js 的 App Router 还集成了 [使用 Suspense 的数据获取](/blog/2022
106106

107107
从零开始可以给你更多的灵活性,但同时也要求你必须自己选择用于路由、数据获取以及其他常见使用模式的工具。这更像自己构建一个框架,而不是使用一个已经存在的框架。[我们推荐的框架](#full-stack-frameworks) 为这些问题提供了内置的解决方案。
108108

109+
<<<<<<< HEAD
109110
如果你想构建自己的解决方案,请参阅我们的 [从零构建一个 React 应用](/learn/build-a-react-app-from-scratch) 指南,该指南提供了如何使用 [Vite](https://vite.dev/)[Parcel](https://parceljs.org/),或 [RSbuild](https://rsbuild.dev/) 等构建工具设置新 React 项目的说明。
111+
=======
112+
If you want to build your own solutions, see our guide to [build a React app from Scratch](/learn/build-a-react-app-from-scratch) for instructions on how to set up a new React project starting with a build tool like [Vite](https://vite.dev/), [Parcel](https://parceljs.org/), or [RSbuild](https://rsbuild.dev/).
113+
>>>>>>> 4bea66b021679e307f3ccb05fdd8fbdf80dd04d7
110114
111115
-----
112116

src/content/reference/react-dom/client/hydrateRoot.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,13 @@ It is uncommon to call [`root.render`](#root-render) on a hydrated root. Usually
380380
381381
By default, React will log all errors to the console. To implement your own error reporting, you can provide the optional error handler root options `onUncaughtError`, `onCaughtError` and `onRecoverableError`:
382382
383-
```js [[1, 6, "onCaughtError"], [2, 6, "error", 1], [3, 6, "errorInfo"], [4, 10, "componentStack", 15]]
383+
```js [[1, 7, "onCaughtError"], [2, 7, "error", 1], [3, 7, "errorInfo"], [4, 11, "componentStack", 15]]
384384
import { hydrateRoot } from "react-dom/client";
385+
import App from "./App.js";
385386
import { reportCaughtError } from "./reportError";
386387

387388
const container = document.getElementById("root");
388-
const root = hydrateRoot(container, {
389+
const root = hydrateRoot(container, <App />, {
389390
onCaughtError: (error, errorInfo) => {
390391
if (error.message !== "Known error") {
391392
reportCaughtError({

src/content/reference/rsc/server-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function EmptyNote () {
5454
}
5555
```
5656

57-
When React renders the `EmptyNote` Server Function, it will create a reference to the `createNoteAction` function, and pass that reference to the `Button` Client Component. When the button is clicked, React will send a request to the server to execute the `createNoteAction` function with the reference provided:
57+
When React renders the `EmptyNote` Server Component, it will create a reference to the `createNoteAction` function, and pass that reference to the `Button` Client Component. When the button is clicked, React will send a request to the server to execute the `createNoteAction` function with the reference provided:
5858

5959
```js {5}
6060
"use client";

src/content/versions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ React 文档位于 [react.dev](https://react.dev),提供最新版本 React 的
1010

1111
我们致力于在主要版本内保持文档的更新,并不会为每个次要版本或补丁版本发布单独的文档版本。当一个新的主要版本发布时,我们会将前一个版本的文档存档为 `x.react.dev`。有关更多信息,请参阅我们的[版本控制政策](/community/versioning-policy)
1212

13+
<<<<<<< HEAD
1314
你可以在下方找到以前主要版本的存档。
1415
## 最新版本:19.0 {/*latest-version*/}
16+
=======
17+
You can find an archive of previous major versions below.
18+
## Latest version: 19.1 {/*latest-version*/}
19+
>>>>>>> 4bea66b021679e307f3ccb05fdd8fbdf80dd04d7
1520
1621
- [react.dev](https://react.dev) {/*docs-19*/}
1722

@@ -50,7 +55,12 @@ React 文档位于 [react.dev](https://react.dev),提供最新版本 React 的
5055
- [React Compiler Case Studies](https://www.youtube.com/watch?v=lvhPq5chokM)
5156
- [React 19 Deep Dive: Coordinating HTML](https://www.youtube.com/watch?v=IBBN-s77YSI)
5257

58+
<<<<<<< HEAD
5359
**发布版本**
60+
=======
61+
**Releases**
62+
- [v19.1.0 (March, 2025)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1910-march-28-2025)
63+
>>>>>>> 4bea66b021679e307f3ccb05fdd8fbdf80dd04d7
5464
- [v19.0.0 (December, 2024)](https://github.com/facebook/react/blob/main/CHANGELOG.md#1900-december-5-2024)
5565

5666
### React 18 {/*react-18*/}

0 commit comments

Comments
 (0)