Why do we need custom hooks?
The answer is we don’t and we do. It depends. If you want to make your code more concise and neat, adopting custom hook may help you.
There are so many new concepts and techniques emerging in the software world. Sometimes, I sometimes ignore and avoid them on purpose.
Custom hook was one of them, but not any more to me.
I used React for a year and now I got to understand what custom hooks do and why they are useful.