React Hooks TL;DR

  • coming in the next minor release (between now and March 2019)
  • hooks are 9 new functions you can import {} from 'react'
  • call hooks inside function components to add things like state or lifecycle methods
  • you can extract hook calls from the function component to another function, making your own custom hooks (this is the best part, it enables better sepatation of concerns and reusability)
  • hooks are optional and compatible with your current code
  • there’s an alpha version available if you want to try them
  • the official docs are very good, start there

Thanks for reading,




-- • @pomber

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rodrigo Pombo

Rodrigo Pombo • @pomber

More from Medium

Coding Conditionals

React Hooks: useState

React Hooks & ‘customHook(s)’