DEV Community

Discussion on: Fetching data and creating a custom hook. 🪝

Collapse
 
verapiatt profile image
VeraPiatt

What is a custom hook and what is its use? divorce spells black magic

Collapse
 
franklin030601 profile image
Franklin Martinez

A Hook is a javascript function that allows you to create/access React state and lifecycles.
Check this article:
freecodecamp.org/news/react-hooks-...