Question Bank · Section 05

React Lifecycle & Hooks

13 questions. Component lifecycle phases, class lifecycle methods and their hook equivalents, core hooks, effect cleanup, useLayoutEffect, and avoiding infinite loops and memory leaks.

Lifecycle and hooks questions test whether you understand when your code runs, not just what it does. Expect to map class methods to hooks, explain effect timing and cleanup, and debug classic bugs like infinite effect loops, stale closures and leaked subscriptions.