Next.js Discord

Discord Forum

How many React Hooks are there?

Unanswered
Mini Satin posted this in #help-forum
Open in Discord
Mini SatinOP
Hi, I'm new in web development can anyone please help me know the React Hooks and there use.

4 Replies

@@ts-ignore https://react.dev/reference/react/hooks
Mini SatinOP
Thanks alot
Sun bear
Don't beat yourself up learning every single hook. Hell most of them are usually not used that often. You can spend time learning better concepts that will help you become a better react developer. It is good to know that a lot of them exist but you are better off searching for them if you have a specific use case.

I would say master: useState, useEffect, useRef, useMemo and context patterns. With these you can achieve almost anything you have in mind. Also don't forget that the most powerful hooks are the custom hooks you write, which usually use these as building blocks.