React JavaScript library for building user interfaces 16.9.0 release, updates are as follows:
React
- Add <React.Profiler> API, for programmatically collect performance metrics
- Delete unstable_ConcurrentMode, select unstable_createRoot
React DOM
- Delete unusual "block mode" (factory) Components
- Add support for disablePictureInPicture properties on the <video>
- Add support for the onload event for the <embed>
- Adds support for editing useState state from DevTools
- Warn useEffect call from setState
- Fixing Memory Leaks
- Repair collapse inside findDOMNode, for encapsulating components <Suspense> in
- Repair warning message Incorrect parameter order
React DOM Server
- Repair CamelCase custom error output CSS property name
React Test Utilities 和 Test Renderer
- Add act (async () => ...) for testing the asynchronous update
- Adding support for the act from different renderers
- If the effect is arranged in the act () call outside, warning in strict mode
- From the error warning renderer will use act
For details, see the release notes: