DEV Community

Discussion on: Do you need a State Management Library?

Collapse
 
link2twenty profile image
Andrew Bone

I tend to use vanilla fetch for my queries rather than a hook, though I do sometimes make a hook like my example one to handle the initial fetch and refreshes. Are there any advantages to using react query other than it makes initial setup time quicker?

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Yes manny, mostly boilerplate you need to much boilerplate if you do everything yourself, I know it is not hard but it simply is more code.