DEV Community

Discussion on: Top 10 React Hook libraries

Collapse
 
noahlaux profile image
Noah Laux

In terms of state handling in a react functional context, I think the hooks API makes things a lot more simple and easier to encapsulate concepts.

However, I agree with you that this could be considered an anti-pattern. Other state handling libraries (either built-in (think Svelte or Vue in their recent incarnations or standalone) use the concepts of stores (readable/writables), which not only overcome the weird hook dances, like rules about where you have to use and declare hooks, leaving you with state handling as just another primitive.