|
|
|
|
|
by onion2k
1778 days ago
|
|
... having every single thing be wrapped in a useX() method to avoid unnecessary updates That is a bit annoying, but it's significantly less annoying than having a single huge componentShouldUpdate function that deals with everything a complicated component uses. Hooks don't really change the work a component does. The logic is essentially the same. They just break it down in to smaller, more reusable, more declarative units. That's usually nicer to work with and a lot more "React-y". |
|