|
|
|
|
|
by ben_jones
2365 days ago
|
|
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. |
|
Of course that doesn't help if you're still pulling in a lot of hooks, since it's 1 line per hook minimum.