React Custom hook

React Custom hook -> think of a React custom hook as a module or a service class that serves some functionality, abstracts away the logic of that functionality to make it reusable. It can have its own state (using useState Hook) and respond to changes to its state (using useEffect) and expose (return) the values/data/information that's needed to its client code.

Last updated