Hooks in depth
Use every built-in hook correctly and explain how hooks work.
- RCT.03.01How hooks work: order and the rulesCoreMid-level11 min
- RCT.03.02useState and useReducerCoreMid-level11 min
- RCT.03.03useRef and DOM refsCoreMid-level10 min
- RCT.03.04useMemo, useCallback, memo and the React CompilerCoreMid-level11 min
- RCT.03.05useContext and its performanceCoreMid-level10 min
- RCT.03.06Other hooksCoreMid-level11 min
Interview questions in this module
- How do hooks work internally? Why can't you call them conditionally?
- When should you use
useReducerinstead ofuseState? - What is the difference between
useMemoanduseCallback? When are they useless? - What does the React Compiler do? Do we still need
useMemo? - Why can context cause performance problems? How do you fix them?
- What is
useRefused for besides DOM access? - What is the difference between
useEffectanduseLayoutEffect? - What is
useIdfor?