GLOSSARY · A WORD, UNPACKED
hook
a function whose name starts with use and that lets a component remember state or subscribe to something.
A little more detail
Hooks such as useState, useEffect, useContext, useRef, useReducer, useMemo, and useCallback are called at the top level of a function component, in the same order every render. Custom hooks are ordinary functions that call other hooks so a behavior can be shared without a class.
See it in practice
These lessons pair the idea with examples you can change and run.