Software Alternatives & Reviews

Why hooks are the best thing to happen to React

Stack Overflow Trends Medium
  1. 2
    Welcome to Medium, a place to read, write, and interact with the stories that matter most to you.
    Pricing:
    • Open Source
    > Hooks are more magic than I prefer But they aren't really magic.. I think the rules of hooks makes it pretty easy to guess how hooks work under the hood. The fact that they need to be called in the same order every time indicates that there's some sort of hidden array attached to each component instance that keeps track of whatever the hook needs.. And IIRC that's how it actually kind of works: https://medium.com/@ryardley/react-hooks-not-magic-just-arrays-cd4f1857236e.

    #Blogging #Blogging Platform #CMS 2211 social mentions

Discuss: Why hooks are the best thing to happen to React

Log in or Post with