❝HN 片单

Michael Jackson - Composing Behavior in React or Why React Hooks are Awesome

React Loop · 2 位 HN 用户推荐 · 2019–2020

  1. Thanks. That helps. Looks like you can build a middleware using hooks alone. I found a good video from a React guru: [link] . He builds a few Redux concepts in the video.
    — subbu, 2019
  2. Not sure if this applies to you but I've found that most people who criticize hooks haven't made the leap to using custom hooks and have instead only used ones provided to them (useState, useEffect, etc). Hooks are an incredible way of encapsulating behavior, separating out that behavior from a component, and exposing that behavior to any component that needs the same behavior. Check out this vid
    — bern4444, 2020

← HN 片单