#Note

Custom hook is used to outsoure stateful logic into re-usable functions. Into custom hooks we can use props, states and react context.

below is the example of hooks

use-htt.js