Post

Reviewing React 16.3 Features

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.

This post is licensed under CC BY 4.0 by the author.