News for hackers. Stuff that matters.
Re:Use Hooks – A Collection of Reusable React Hooks by duncan-donuts on Thursday December 13, 2018 @10:40PM (#18678273)
Ah interesting and makes a lot of sense. I’m used to using redux with some other middleware to solve this problem and honestly I’ve never been happy with it. Thanks for the response!
Re:Use Hooks – A Collection of Reusable React Hooks by ncphillips on Thursday December 13, 2018 @10:51PM (#18678332)
Your welcome! I've been playing with a class-based alternative to hooks that solves the same problems. We're using it in prod for a few spots at work and are considering publicizing it in the future. Personally, I find the API more natural.