Posts Tagged Under: react 16.6

What’s New in React 16.6

React version 16.6 is out and it comes packed with some useful new features that are very much worth getting excited about. It’s a minor release with major features focused on performance optimization. The main new features include:

  • React.memo()
  • React.lazy()
  • static contextType()
  • static getDerivedStateFromError()
  • a number of deprecations in StrictMode

Let’s take a look into what each of these features adds to React.

React.memo()

React.memo() is the functional component solution to React.PureComponent as used in class components.

Read More