Increment of the Hooks in the React

Asked

Viewed 57 times

1

I’m venturing into the world of React and I realize that now there are Hooks.

I would like to understand:

  • What was the need to implement this Feature; and:
  • What would be the advantage of using Hooks instead of state?
  • 1

    I recommend you look at this site: https://pt-br.reactjs.org/docs/hooks-intro.html

  • 1

    If you can hear in English, I recommend this talk from the React team introducing the concept of Hooks. https://www.youtube.com/watch?v=dpw9EHDh2bM

  • 1

    I think you could change "instead of state" to "instead of classes", given that the Hooks allow you to use resources such as the.

1 answer

-1


When the Hooks arrived, I was a little confused about the motivations for a Feature that would change a lot the way we use React, and that link was the watershed to really understand how to use the Hooks.

http://high5devs.com/2019/03/react-hooks/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.