DEV Community

Mariusz
Mariusz

Posted on • Edited on

4

React Tldr; React v16.9.0

New Deprecations:

  • you will now see a warning when using any of the old names of unsafe lifecycle method
  • Using "javascript:" URLs now will log a warning
  • No support for “factory” component that returns an object with a render method

New Features:

  • act() testing utility also accepts asynchronous functions
  • programmatic way to gather measurements called - measures how often app renders and what's the "cost" of render is

Bugfixes:

  • A crash when calling findDOMNode() inside a tree has been fixed.
  • A memory leak caused by retaining deleted subtrees has been fixed too.
  • An infinite loop caused by setState in useEffect now logs an error. (This is similar to the error you see when you call setState in componentDidUpdate in a class.)

Source: https://reactjs.org/blog/2019/08/08/react-v16.9.0.html

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay