Member-only story

React Components vs. React Hooks

A list of differences between the components class and React hooks

Gerardo Fernández
Better Programming
7 min readOct 11, 2019

--

These last few months, I’ve been delving into React hooks, the new functionality that created so much hype when presented and to which I’ve not been able to devote excessive time until now.

If you have been cryogenized in recent months, you can see the talk in which they were first shown below:

What Have I Tried Thus Far?

To start getting used to working with React hooks, I’ve defined a project with the following characteristics:

  • A Facebook login
  • Calls to an external API (specifically https://reqres.in/api, a true discovery if you want to mess with API calls)
  • Status management through Redux
  • An entity creation and editing form
  • Application routing through React Router and private route protection
  • Use of styled components

--

--

Gerardo Fernández
Gerardo Fernández

Written by Gerardo Fernández

Entre paseo y paseo con Simba desarrollo en Symfony y React

Responses (1)

Write a response