Raja Muhammad Asher
Raja Muhammad Asher

Raja Muhammad Asher

What is React Hooks?

Photo by Lautaro Andreani on Unsplash

What is React Hooks?

Raja Muhammad Asher's photo
Raja Muhammad Asher
·Aug 16, 2022·

1 min read

Hooks are functions that let you “hook into” React state and lifecycle features from function components. Hooks don’t work inside classes — they let you use React without classes.

Basic Hooks

  • useState
  • useEffect
  • useContext

Additional Hooks

  • useReducer
  • useCallback
  • useMemo
  • useRef
  • useImperativeHandle
  • useLayoutEffect
  • useDebugValue
  • useDeferredValue
  • useTransition
  • useId

Library Hooks

  • useSyncExternalStore
  • useInsertionEffect

Sources:

Hooks API Reference –. (n.d.). React. reactjs.org/docs/hooks-reference.html

 
Share this