Reviewing React 16.3 Features
Reviewing React 16.3 Features

Reviewing React 16.3 Features

Author
Shiv Bade
Tags
react
context api
Published
March 24, 2018
Featured
Slug
Tweet
React 16.3 introduced a few important changes:
  • New Context API: way cleaner and easier to use
  • getDerivedStateFromProps replacing legacy lifecycles
  • Forwarding Refs for HOCs
The new context API simplified theme handling in one of our internal dashboards. No more contextType gymnastics.
Also, the gradual deprecation of legacy lifecycles sent a strong message: modernize or be left behind.