Introduction

Overview of basic and additional Hooks.

Types of Hooks

From this lesson onwards, we’ll summarize all the Hooks available internally and describe how and when they can be used. The official React documentation differentiates between three basic Hooks and seven additional Hooks. These additional Hooks are often used for very specific use cases (such as performance optimizations), or they are extensions of the basic Hooks.

Basic Hooks

The three basic Hooks that we mentioned briefly beforehand are:

  1. useState
  2. useEffect
  3. useContext

Additional Hooks

The seven additional Hooks are:

  1. useReducer
  2. useCallback
  3. useMemo
  4. useRef
  5. useImperativeHandle
  6. useLayoutEffect
  7. useDebugValue

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy