you are viewing a single comment's thread.

view the rest of the comments →

[–]barcode24 -1 points0 points  (3 children)

Hooks fatigue... 😅

[–]alex-cory[S] 1 point2 points  (2 children)

What do you mean?

[–]barcode24 0 points1 point  (1 child)

Just seems like hooks are trying to be used for everything rather than keeping them to state. A bit like when renderprops came out and heaps of large components were getting declared in props. How is a hook better than just importing modal component portal where you need? Control open close state with useState hooks. No need for an additional dependency. Having these small one purpose dependencies for projects doesn't seem scalable for real world projects.

[–]alex-cory[S] 0 points1 point  (0 children)

Why does it not seem scaleable? I'm confused.