Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(en): merge reactjs.org/main into zh-hans.reactjs.org/main @ 8afb1ef5 #1328

Merged
merged 7 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/content/community/conferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ October 27th 2023. In-person in Verona, Italy and online (hybrid event)

[Website](https://2023.reactjsday.it/) - [Twitter](https://twitter.com/reactjsday) - [Facebook](https://www.facebook.com/GrUSP/) - [YouTube](https://www.youtube.com/c/grusp)


### React Summit US 2023 {/*react-summit-us-2023*/}
November 13 & 15, 2023. In-person in New York, US + remote first interactivity (hybrid event)

Expand All @@ -66,6 +65,11 @@ December 8 & 12, 2023. In-person in Berlin, Germany + remote first interactivity

[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://portal.gitnation.org/events/react-day-berlin-2023)

### App.js Conf 2024 {/*appjs-conf-2024*/}
May 22 - 24, 2024. In-person in Kraków, Poland + remote

[Website](https://appjs.co) - [Twitter](https://twitter.com/appjsconf)

### Render(ATL) 2024 🍑 {/*renderatl-2024-*/}
June 12 - June 14, 2024. Atlanta, GA, USA

Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/rendering-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ export const recipes = [

#### 带有分隔符的列表 {/*list-with-a-separator*/}

下面这个示例展示了葛饰北斋一首著名的俳句,它的每一行都由 `<p>` 标签包裹。你需要在段落之间插入分隔符 `<hr />`,最终的结果大概像这样:
下面这个示例展示了立花北枝一首著名的俳句,它的每一行都由 `<p>` 标签包裹。你需要在段落之间插入分隔符 `<hr />`,最终的结果大概像这样:

```js
<article>
Expand Down
9 changes: 2 additions & 7 deletions src/content/learn/start-a-new-react-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,9 @@ Expo 是由 [Expo 这家公司](https://expo.dev/about) 维护的。用 Expo 构

### Next.js (App Router) {/*nextjs-app-router*/}

**[Next.js 的 App Router](https://beta.nextjs.org/docs/getting-started) 是对 Next.js API 的重新设计,旨在实现 React 团队的全栈架构愿景**。它让你在异步组件中获取数据,这些组件甚至能在服务端构建过程中运行。
**[Next.js 的 App Router](https://nextjs.org/docs) 是对 Next.js API 的重新设计,旨在实现 React 团队的全栈架构愿景**。它让你在异步组件中获取数据,这些组件甚至能在服务端构建过程中运行。

Next.js 由 [Vercel](https://vercel.com/) 维护。你可以将 [Next.js 应用](https://nextjs.org/docs/deployment) 部署到 Node.js 或 serverless 主机上,或部署到你自己的服务器上。Next.js 还支持 [静态导出](https://beta.nextjs.org/docs/configuring/static-export),不需要服务器。
<Pitfall>

Next.js 的 App Router 目前处于 **测试阶段,还不建议用于生产环境**(截止到 2023 年 3 月)。要在现有的 Next.js 项目进行实验,[参见逐步迁移指南](https://beta.nextjs.org/docs/upgrade-guide#migrating-from-pages-to-app)。

</Pitfall>
Next.js 由 [Vercel](https://vercel.com/) 维护。你可以将 [Next.js 应用](https://nextjs.org/docs/deployment) 部署到 Node.js 或 serverless 主机上,或部署到你自己的服务器上。Next.js 还支持 [静态导出](https://nextjs.org/docs/configuring/static-export),不需要服务器。

<DeepDive>

Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/react/Profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function onRender(id, phase, actualDuration, baseDuration, startTime, commitTime
* `actualDuration`:在此次更新中,渲染 `<Profiler>` 组件树的毫秒数。这可以显示子树在使用记忆化(例如 [`memo`](/reference/react/memo) 和 [`useMemo`](/reference/react/useMemo))后的效果如何。理想情况下,此值在挂载后应显著减少,因为许多后代组件只会在特定的 props 变化时重新渲染。
* `baseDuration`:估算在没有任何优化的情况下重新渲染整棵 `<Profiler>` 子树所需的毫秒数。它通过累加树中每个组件的最近一次渲染持续时间来计算。此值估计了渲染的最差情况成本(例如初始挂载或没有使用记忆化的树)。将其与 `actualDuration` 进行比较,以确定记忆化是否起作用。
* `startTime`:当 React 开始渲染此次更新时的时间戳。
* `endTime`:当 React 提交此次更新时的时间戳。此值在提交的所有 profiler 中共享,如果需要,可以对它们进行分组。
* `commitTime`:当 React 提交此次更新时的时间戳。此值在提交的所有 profiler 中共享,如果需要,可以对它们进行分组。

---

Expand Down
Loading