DEV Community

Discussion on: You (probably) don't need that useState + useEffect

Collapse
 
ebitzu profile image
eBitzu

You should make a custom hook when dealing with any type of data...

Collapse
 
townofdon profile image
Don Juan Javier

Agree, I use custom hooks a lot - it's also important to not abstract things out too hastily. I'm a big fan of iterative refactoring.

Collapse
 
raulmarindev profile image
Raúl Marín • Edited

Could you elaborate? Why not use swr/react-query?