Understanding Custom React Hooks by Using Them
What are they? and Why and How to use them.
Published in
5 min readMar 22, 2020
React 16.8 came with the ability to use hooks in React that gave us the ability to enhance functional components in such a way that they could do anything a class component could do through useState
and useEffect
hooks. But a slightly overlooked capability was to create your own custom hooks.