News for hackers. Stuff that matters.
Re:What Are the React Team Principles? by sb8244 on Wednesday December 25, 2019 @01:07PM (#21879680)
I feel that hooks make it easy to go from functional component (simplest way to get started) to stateful component without "rewriting" it to the class. It's easy to do that rewrite, but painful when you have to do it back and forth as you're playing around with component design.

That's represented in one of these principles.

Re:What Are the React Team Principles? by ben_jones on Wednesday December 25, 2019 @03:02PM (#21880156)
I've found several "subtle" benefits from hooks in the way they can influence more idiomatic code structure, for example "code smell" becomes more intense and dictates more actions because when a function is > 100 lines of code it sticks out like a sore thumb. It's also influenced us to put more business logic into redux where (arguably) it belongs.
Re:What Are the React Team Principles? by sb8244 on Wednesday December 25, 2019 @03:20PM (#21880235)
My coworker showed me that hooks are just functions, so you can still pull apart your functional components hooks into a bunch of imported or defined functions.

Of course that doesn't help if you're still pulling in a lot of hooks, since it's 1 line per hook minimum.