React 17

    • 17 版本之后支持多版本共存。mark, 后续跟进。
  • 冒泡机制更改: 向原生靠拢;
  • 降低开发心智;

React 18

automatic batching setState

  • React 18 默认支持在 setTimeout、fetch 中, automatic batching setState。discussion

startTransition

In a typical React app, most updates are conceptually transition updates. But for backwards compatibility reasons, transitions are opt-in. By default, React 18 still handles updates as urgent, and you can mark an update as a transition by wrapping it into startTransition.

New Suspense SSR Architecture in React 18

link