React Hooks TL;DR

If you want to know what React Hooks are about but don’t want to learn them yet, this is for you.

  • 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

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