Engrain by ByteRush

RCT.03 6 concepts · 6 ready

Hooks in depth

Use every built-in hook correctly and explain how hooks work.

  1. RCT.03.01How hooks work: order and the rulesCoreMid-level11 min
  2. RCT.03.02useState and useReducerCoreMid-level11 min
  3. RCT.03.03useRef and DOM refsCoreMid-level10 min
  4. RCT.03.04useMemo, useCallback, memo and the React CompilerCoreMid-level11 min
  5. RCT.03.05useContext and its performanceCoreMid-level10 min
  6. RCT.03.06Other hooksCoreMid-level11 min

Interview questions in this module

  1. How do hooks work internally? Why can't you call them conditionally?
  2. When should you use useReducer instead of useState?
  3. What is the difference between useMemo and useCallback? When are they useless?
  4. What does the React Compiler do? Do we still need useMemo?
  5. Why can context cause performance problems? How do you fix them?
  6. What is useRef used for besides DOM access?
  7. What is the difference between useEffect and useLayoutEffect?
  8. What is useId for?