Relative Content

Tag Archive for reactjs

Is it mandatory to use built-in hooks inside a custom hook?

I am new to ReactJs, my understanding of custom hooks is that they are used for separating logic into a function. In many of the custom hook examples I have seen uses some built-in hook (mostly useState and useEffect). Is it mandatory to use built-in hooks ?