DEV Community

Discussion on: Which React hooks do you use the most?

Collapse
 
link2twenty profile image
Andrew Bone

I use useState and useEffect in most components, though I do try to avoid using hooks if I can help it, just for the performance gains.

I've written a few custom hooks I tend to only write them if they're gonna be used in more than one place in the app I'm working on or if I can see using the hook in several apps in the future. If it's one off functionality I can just embed the logic into the component that needs it.