React comes with several built-in Hooks like useState, useContext, and useEffect.Sometimes, you’ll wish that there was a Hook for some more specific purpose: for example, to fetch data, to keep track of whether the user is online, or to connect to a chat room
custom hooks doesnt return JSX
We can create Custom Hooks - using js function and built Hooks
Top comments (0)