News for hackers. Stuff that matters.
Re:A Critique of React Hooks Addendum by nightski on Thursday May 07, 2020 @07:30PM (#23109617)
Again this isn't a problem with hooks. You could easily connect a redux store and reducer to some component low in the hierarchy with it's own state. Or use a class based component with some state. A developer can introduce random state anywhere and it has nothing to do with hooks themselves. If you can't trust your team to make the right decisions about where to place state, then you need to provide more guidance.

I also disagree about the big re-write. Converting a hook's data/state to come from a prop instead is a very simple change.

Re:A Critique of React Hooks Addendum by schwartzworld on Thursday May 07, 2020 @09:19PM (#23110379)
I love how every criticism of hooks is like "if you don't take care to use them well, you get bad code".