from Hacker News

React Hook recipes every day

by aston on 11/5/18, 7:33 PM with 6 comments

  • by matthewmacleod on 11/5/18, 9:40 PM

    I admit I’m still totally unconvinced of the value of hooks. This code looks more complex and abstract than the simple class model. Still, it’s good to see some resources!
  • by timwis on 11/5/18, 9:55 PM

    This is really helpful to convey all the use cases!
  • by drinchev on 11/6/18, 6:14 AM

    Is there any benefit of using hooks with stateless components versus just having a class component?

    Can't reusability come via abstract components, instead of hooks?