@@ -144,7 +144,7 @@ startTransition(() => {
144
144
145
145
并发渲染中将会加入过渡更新,允许更新被中断。如果更新内容被重新挂起,过渡机制也会告诉 React 在后台渲染过渡内容时继续展示当前内容(查看 [ Suspense 意见征求] ( https://github.com/reactjs/rfcs/blob/main/text/0213-suspense-in-react-18.md ) 了解更多信息)。
146
146
147
- [ 更多内容请参阅过渡相关文档 ] ( /reference/react/useTransition ) 。
147
+ [ 更多内容请参阅过渡相关的文档 ] ( /reference/react/useTransition ) 。
148
148
149
149
### 新的 Suspense 特性 {/* new-suspense-features* /}
150
150
@@ -223,7 +223,7 @@ React 18 中的 Suspense 在与过渡 API 结合时效果最好。如果你在
223
223
* effect 创建
224
224
```
225
225
226
- [ 参阅 确保状态可重用 文档 ] ( /reference/react/StrictMode#fixing-bugs-found-by-re-running-effects-in-development ) 。
226
+ [ 参阅确保状态可重用的文档 ] ( /reference/react/StrictMode#fixing-bugs-found-by-re-running-effects-in-development ) 。
227
227
228
228
### 新的 Hook {/* new-hooks* /}
229
229
@@ -268,12 +268,12 @@ React 18 中的 Suspense 在与过渡 API 结合时效果最好。如果你在
268
268
269
269
### React {/* react* /}
270
270
271
- * 添加 `useTransition` 和 `useDeferredValue` 以将紧急更新和过渡更新分开。([#10426](https://github.com/facebook/react/pull/10426), [#10715](https://github.com/facebook/react/pull/10715), [#15593](https://github.com/facebook/react/pull/15593), [#15272](https://github.com/facebook/react/pull/15272), [#15578](https://github.com/facebook/react/pull/15578), [#15769](https://github.com/facebook/react/pull/15769), [#17058](https://github.com/facebook/react/pull/17058), [#18796](https://github.com/facebook/react/pull/18796), [#19121](https://github.com/facebook/react/pull/19121), [#19703](https://github.com/facebook/react/pull/19703), [#19719](https://github.com/facebook/react/pull/19719), [#19724](https://github.com/facebook/react/pull/19724), [#20672](https://github.com/facebook/react/pull/20672), [#20976](https://github.com/facebook/react/pull/20976) by [@acdlite](https://github.com/acdlite), [@lunaruan](https://github.com/lunaruan), [@rickhanlonii](https://github.com/rickhanlonii), and [@sebmarkbage](https://github.com/sebmarkbage))
272
- * 添加 ` useId ` 用于生成唯一 ID。([ #17322 ] ( https://github.com/facebook/react/pull/17322 ) , [ #18576 ] ( https://github.com/facebook/react/pull/18576 ) , [ #22644 ] ( https://github.com/facebook/react/pull/22644 ) , [ #22672 ] ( https://github.com/facebook/react/pull/22672 ) , [ #21260 ] ( https://github.com/facebook/react/pull/21260 ) by [ @acdlite ] ( https://github.com/acdlite ) , [ @lunaruan ] ( https://github.com/lunaruan ) , and [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
273
- * 添加 ` useSyncExternalStore ` 以帮助外部存储库与 React 集成。([ #15022 ] ( https://github.com/facebook/react/pull/15022 ) , [ #18000 ] ( https://github.com/facebook/react/pull/18000 ) , [ #18771 ] ( https://github.com/facebook/react/pull/18771 ) , [ #22211 ] ( https://github.com/facebook/react/pull/22211 ) , [ #22292 ] ( https://github.com/facebook/react/pull/22292 ) , [ #22239 ] ( https://github.com/facebook/react/pull/22239 ) , [ #22347 ] ( https://github.com/facebook/react/pull/22347 ) , [ #23150 ] ( https://github.com/facebook/react/pull/23150 ) by [ @acdlite ] ( https://github.com/acdlite ) , [ @bvaughn ] ( https://github.com/bvaughn ) , and [ @drarmstr ] ( https://github.com/drarmstr ) )
271
+ * 添加 `useTransition` 和 `useDeferredValue` 以将紧急更新和过渡更新分开。([#10426](https://github.com/facebook/react/pull/10426), [#10715](https://github.com/facebook/react/pull/10715), [#15593](https://github.com/facebook/react/pull/15593), [#15272](https://github.com/facebook/react/pull/15272), [#15578](https://github.com/facebook/react/pull/15578), [#15769](https://github.com/facebook/react/pull/15769), [#17058](https://github.com/facebook/react/pull/17058), [#18796](https://github.com/facebook/react/pull/18796), [#19121](https://github.com/facebook/react/pull/19121), [#19703](https://github.com/facebook/react/pull/19703), [#19719](https://github.com/facebook/react/pull/19719), [#19724](https://github.com/facebook/react/pull/19724), [#20672](https://github.com/facebook/react/pull/20672), [#20976](https://github.com/facebook/react/pull/20976) [@acdlite](https://github.com/acdlite), [@lunaruan](https://github.com/lunaruan), [@rickhanlonii](https://github.com/rickhanlonii), and [@sebmarkbage](https://github.com/sebmarkbage))
272
+ * 添加 ` useId ` 用于生成唯一 ID。([ #17322 ] ( https://github.com/facebook/react/pull/17322 ) , [ #18576 ] ( https://github.com/facebook/react/pull/18576 ) , [ #22644 ] ( https://github.com/facebook/react/pull/22644 ) , [ #22672 ] ( https://github.com/facebook/react/pull/22672 ) , [ #21260 ] ( https://github.com/facebook/react/pull/21260 ) [ @acdlite ] ( https://github.com/acdlite ) , [ @lunaruan ] ( https://github.com/lunaruan ) , and [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
273
+ * 添加 ` useSyncExternalStore ` 以帮助外部存储库与 React 集成。([ #15022 ] ( https://github.com/facebook/react/pull/15022 ) , [ #18000 ] ( https://github.com/facebook/react/pull/18000 ) , [ #18771 ] ( https://github.com/facebook/react/pull/18771 ) , [ #22211 ] ( https://github.com/facebook/react/pull/22211 ) , [ #22292 ] ( https://github.com/facebook/react/pull/22292 ) , [ #22239 ] ( https://github.com/facebook/react/pull/22239 ) , [ #22347 ] ( https://github.com/facebook/react/pull/22347 ) , [ #23150 ] ( https://github.com/facebook/react/pull/23150 ) [ @acdlite ] ( https://github.com/acdlite ) , [ @bvaughn ] ( https://github.com/bvaughn ) , and [ @drarmstr ] ( https://github.com/drarmstr ) )
274
274
* 添加 ` startTransition ` 作为 ` useTransition ` 的一个版本,不需要等待反馈。 ([ #19696 ] ( https://github.com/facebook/react/pull/19696 ) [ @rickhanlonii ] ( https://github.com/rickhanlonii ) )
275
- * 添加 ` useInsertionEffect ` 用于 CSS-in-JS 库。([ #21913 ] ( https://github.com/facebook/react/pull/21913 ) by [ @rickhanlonii ] ( https://github.com/rickhanlonii ) )
276
- * 当内容重新出现时,使 Suspense 重新装载 layout effect。([ #19322 ] ( https://github.com/facebook/react/pull/19322 ) , [ #19374 ] ( https://github.com/facebook/react/pull/19374 ) , [ #19523 ] ( https://github.com/facebook/react/pull/19523 ) , [ #20625 ] ( https://github.com/facebook/react/pull/20625 ) , [ #21079 ] ( https://github.com/facebook/react/pull/21079 ) by [ @acdlite ] ( https://github.com/acdlite ) , [ @bvaughn ] ( https://github.com/bvaughn ) , and [ @lunaruan ] ( https://github.com/lunaruan ) )
275
+ * 添加 ` useInsertionEffect ` 用于 CSS-in-JS 库。([ #21913 ] ( https://github.com/facebook/react/pull/21913 ) [ @rickhanlonii ] ( https://github.com/rickhanlonii ) )
276
+ * 当内容重新出现时,使 Suspense 重新装载 layout effect。([ #19322 ] ( https://github.com/facebook/react/pull/19322 ) , [ #19374 ] ( https://github.com/facebook/react/pull/19374 ) , [ #19523 ] ( https://github.com/facebook/react/pull/19523 ) , [ #20625 ] ( https://github.com/facebook/react/pull/20625 ) , [ #21079 ] ( https://github.com/facebook/react/pull/21079 ) [ @acdlite ] ( https://github.com/acdlite ) , [ @bvaughn ] ( https://github.com/bvaughn ) , and [ @lunaruan ] ( https://github.com/lunaruan ) )
277
277
* 使 ` <StrictMode> ` 重新运行 effect 以检查可恢复的状态。([ #19523 ] ( https://github.com/facebook/react/pull/19523 ) , [ #21418 ] ( https://github.com/facebook/react/pull/21418 ) [ @bvaughn ] ( https://github.com/bvaughn ) and [ @lunaruan ] ( https://github.com/lunaruan ) )
278
278
* 假设 ` Symbols ` 总是可用的。([ #23348 ] ( https://github.com/facebook/react/pull/23348 ) [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
279
279
* 移除 ` object-assign ` polyfill。([ #23351 ] ( https://github.com/facebook/react/pull/23351 ) [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
@@ -291,18 +291,18 @@ React 18 中的 Suspense 在与过渡 API 结合时效果最好。如果你在
291
291
* 修复 Safari 在追加 iframe 时忽略 ` setState ` 的问题。([ #23111 ] ( https://github.com/facebook/react/pull/23111 ) [ @gaearon ] ( https://github.com/gaearon ) )
292
292
* 修复在树中渲染 ` ZonedDateTime ` 时的崩溃。([ #20617 ] ( https://github.com/facebook/react/pull/20617 ) [ @dimaqq ] ( https://github.com/dimaqq ) )
293
293
* 修复在测试中文档被设置为 ` null ` 时的崩溃问题。([ #22695 ] ( https://github.com/facebook/react/pull/22695 ) [ @SimenB ] ( https://github.com/SimenB ) )
294
- * 修复 onLoad 在开启并发特性时不触发的问题。([ #23316 ] ( https://github.com/facebook/react/pull/23316 ) by [ @gnoff ] ( https://github.com/gnoff ) )
294
+ * 修复 onLoad 在开启并发特性时不触发的问题。([ #23316 ] ( https://github.com/facebook/react/pull/23316 ) [ @gnoff ] ( https://github.com/gnoff ) )
295
295
* 修复选择器返回 ` NaN ` 时的警告。([ #23333 ] ( https://github.com/facebook/react/pull/23333 ) [ @hachibeeDI ] ( https://github.com/hachibeeDI ) )
296
- * 修复在测试中文档被设置为 ` null ` 时的崩溃问题。([ #22695 ] ( https://github.com/facebook/react/pull/22695 ) by [ @SimenB ] ( https://github.com/SimenB ) )
297
- * 修复生成的 License 头。([ #23004 ] ( https://github.com/facebook/react/pull/23004 ) by [ @vitaliemiron ] ( https://github.com/vitaliemiron ) )
298
- * 添加 ` package.json ` 作为入口点之一。 ([ #22954 ] ( https://github.com/facebook/react/pull/22954 ) by [ @Jack ] ( https://github.com/Jack-Works ) )
296
+ * 修复在测试中文档被设置为 ` null ` 时的崩溃问题。([ #22695 ] ( https://github.com/facebook/react/pull/22695 ) [ @SimenB ] ( https://github.com/SimenB ) )
297
+ * 修复生成的 License 头。([ #23004 ] ( https://github.com/facebook/react/pull/23004 ) [ @vitaliemiron ] ( https://github.com/vitaliemiron ) )
298
+ * 添加 ` package.json ` 作为入口点之一。 ([ #22954 ] ( https://github.com/facebook/react/pull/22954 ) [ @Jack ] ( https://github.com/Jack-Works ) )
299
299
* 允许在 Suspense 边界外挂起。([ #23267 ] ( https://github.com/facebook/react/pull/23267 ) [ @acdlite ] ( https://github.com/acdlite ) )
300
300
* 每当 hydrate 失败时记录一个可恢复的错误。([ #23319 ] ( https://github.com/facebook/react/pull/23319 ) [ @acdlite ] ( https://github.com/acdlite ) )
301
301
302
302
### React DOM {/* react-dom* /}
303
303
304
- * 添加 `createRoot` 和 `hydrateRoot`。([#10239](https://github.com/facebook/react/pull/10239), [#11225](https://github.com/facebook/react/pull/11225), [#12117](https://github.com/facebook/react/pull/12117), [#13732](https://github.com/facebook/react/pull/13732), [#15502](https://github.com/facebook/react/pull/15502), [#15532](https://github.com/facebook/react/pull/15532), [#17035](https://github.com/facebook/react/pull/17035), [#17165](https://github.com/facebook/react/pull/17165), [#20669](https://github.com/facebook/react/pull/20669), [#20748](https://github.com/facebook/react/pull/20748), [#20888](https://github.com/facebook/react/pull/20888), [#21072](https://github.com/facebook/react/pull/21072), [#21417](https://github.com/facebook/react/pull/21417), [#21652](https://github.com/facebook/react/pull/21652), [#21687](https://github.com/facebook/react/pull/21687), [#23207](https://github.com/facebook/react/pull/23207), [#23385](https://github.com/facebook/react/pull/23385) by [@acdlite](https://github.com/acdlite), [@bvaughn](https://github.com/bvaughn), [@gaearon](https://github.com/gaearon), [@lunaruan](https://github.com/lunaruan), [@rickhanlonii](https://github.com/rickhanlonii), [@trueadm](https://github.com/trueadm), and [@sebmarkbage](https://github.com/sebmarkbage))
305
- * 添加选择性 hydrate。([ #14717 ] ( https://github.com/facebook/react/pull/14717 ) , [ #14884 ] ( https://github.com/facebook/react/pull/14884 ) , [ #16725 ] ( https://github.com/facebook/react/pull/16725 ) , [ #16880 ] ( https://github.com/facebook/react/pull/16880 ) , [ #17004 ] ( https://github.com/facebook/react/pull/17004 ) , [ #22416 ] ( https://github.com/facebook/react/pull/22416 ) , [ #22629 ] ( https://github.com/facebook/react/pull/22629 ) , [ #22448 ] ( https://github.com/facebook/react/pull/22448 ) , [ #22856 ] ( https://github.com/facebook/react/pull/22856 ) , [ #23176 ] ( https://github.com/facebook/react/pull/23176 ) by [ @acdlite ] ( https://github.com/acdlite ) , [ @gaearon ] ( https://github.com/gaearon ) , [ @salazarm ] ( https://github.com/salazarm ) , and [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
304
+ * 添加 `createRoot` 和 `hydrateRoot`。([#10239](https://github.com/facebook/react/pull/10239), [#11225](https://github.com/facebook/react/pull/11225), [#12117](https://github.com/facebook/react/pull/12117), [#13732](https://github.com/facebook/react/pull/13732), [#15502](https://github.com/facebook/react/pull/15502), [#15532](https://github.com/facebook/react/pull/15532), [#17035](https://github.com/facebook/react/pull/17035), [#17165](https://github.com/facebook/react/pull/17165), [#20669](https://github.com/facebook/react/pull/20669), [#20748](https://github.com/facebook/react/pull/20748), [#20888](https://github.com/facebook/react/pull/20888), [#21072](https://github.com/facebook/react/pull/21072), [#21417](https://github.com/facebook/react/pull/21417), [#21652](https://github.com/facebook/react/pull/21652), [#21687](https://github.com/facebook/react/pull/21687), [#23207](https://github.com/facebook/react/pull/23207), [#23385](https://github.com/facebook/react/pull/23385) [@acdlite](https://github.com/acdlite), [@bvaughn](https://github.com/bvaughn), [@gaearon](https://github.com/gaearon), [@lunaruan](https://github.com/lunaruan), [@rickhanlonii](https://github.com/rickhanlonii), [@trueadm](https://github.com/trueadm), and [@sebmarkbage](https://github.com/sebmarkbage))
305
+ * 添加选择性 hydrate。([ #14717 ] ( https://github.com/facebook/react/pull/14717 ) , [ #14884 ] ( https://github.com/facebook/react/pull/14884 ) , [ #16725 ] ( https://github.com/facebook/react/pull/16725 ) , [ #16880 ] ( https://github.com/facebook/react/pull/16880 ) , [ #17004 ] ( https://github.com/facebook/react/pull/17004 ) , [ #22416 ] ( https://github.com/facebook/react/pull/22416 ) , [ #22629 ] ( https://github.com/facebook/react/pull/22629 ) , [ #22448 ] ( https://github.com/facebook/react/pull/22448 ) , [ #22856 ] ( https://github.com/facebook/react/pull/22856 ) , [ #23176 ] ( https://github.com/facebook/react/pull/23176 ) [ @acdlite ] ( https://github.com/acdlite ) , [ @gaearon ] ( https://github.com/gaearon ) , [ @salazarm ] ( https://github.com/salazarm ) , and [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
306
306
* 在已知的 ARIA 属性列表中增加 ` aria-description ` 。([ #22142 ] ( https://github.com/facebook/react/pull/22142 ) [ @mahyareb ] ( https://github.com/mahyareb ) )
307
307
* 为 video 元素添加 ` onResize ` 事件。([ #21973 ] ( https://github.com/facebook/react/pull/21973 ) [ @rileyjshaw ] ( https://github.com/rileyjshaw ) )
308
308
* 将 ` imageSizes ` 和 ` imageSrcSet ` 添加到已知属性中。([ #22550 ] ( https://github.com/facebook/react/pull/22550 ) [ @eps1lon ] ( https://github.com/eps1lon ) )
@@ -312,7 +312,7 @@ React 18 中的 Suspense 在与过渡 API 结合时效果最好。如果你在
312
312
313
313
### React DOM Server {/* react-dom-server-1* /}
314
314
315
- * 添加新的流式渲染器。([ #14144 ] ( https://github.com/facebook/react/pull/14144 ) , [ #20970 ] ( https://github.com/facebook/react/pull/20970 ) , [ #21056 ] ( https://github.com/facebook/react/pull/21056 ) , [ #21255 ] ( https://github.com/facebook/react/pull/21255 ) , [ #21200 ] ( https://github.com/facebook/react/pull/21200 ) , [ #21257 ] ( https://github.com/facebook/react/pull/21257 ) , [ #21276 ] ( https://github.com/facebook/react/pull/21276 ) , [ #22443 ] ( https://github.com/facebook/react/pull/22443 ) , [ #22450 ] ( https://github.com/facebook/react/pull/22450 ) , [ #23247 ] ( https://github.com/facebook/react/pull/23247 ) , [ #24025 ] ( https://github.com/facebook/react/pull/24025 ) , [ #24030 ] ( https://github.com/facebook/react/pull/24030 ) by [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
315
+ * 添加新的流式渲染器。([ #14144 ] ( https://github.com/facebook/react/pull/14144 ) , [ #20970 ] ( https://github.com/facebook/react/pull/20970 ) , [ #21056 ] ( https://github.com/facebook/react/pull/21056 ) , [ #21255 ] ( https://github.com/facebook/react/pull/21255 ) , [ #21200 ] ( https://github.com/facebook/react/pull/21200 ) , [ #21257 ] ( https://github.com/facebook/react/pull/21257 ) , [ #21276 ] ( https://github.com/facebook/react/pull/21276 ) , [ #22443 ] ( https://github.com/facebook/react/pull/22443 ) , [ #22450 ] ( https://github.com/facebook/react/pull/22450 ) , [ #23247 ] ( https://github.com/facebook/react/pull/23247 ) , [ #24025 ] ( https://github.com/facebook/react/pull/24025 ) , [ #24030 ] ( https://github.com/facebook/react/pull/24030 ) [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
316
316
* 修复 SSR 中的上下文提供者在处理多个请求时的问题。([ #23171 ] ( https://github.com/facebook/react/pull/23171 ) [ @frandiox ] ( https://github.com/frandiox ) )
317
317
* 文本不匹配时恢复到客户端渲染。([ #23354 ] ( https://github.com/facebook/react/pull/23354 ) [ @acdlite ] ( https://github.com/acdlite ) )
318
318
* 弃用 ` renderToNodeStream ` 。([ #23359 ] ( https://github.com/facebook/react/pull/23359 ) [ @sebmarkbage ] ( https://github.com/sebmarkbage ) )
0 commit comments