React 16.9.0 release, JavaScript library to build user interfaces

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:

https://github.com/facebook/react/releases/tag/v16.9.0 

Guess you like

Origin www.oschina.net/news/108906/react-16-9-0-released