Question Bank

React Lifecycle and Class Component Quiz

Difficulty: Medium

Four drills on legacy class lifecycle methods that still show up in interviews and codebases: mount/update/unmount, getSnapshotBeforeUpdate, setState batching, and getDerivedStateFromProps.

Question Bank
/

React Lifecycle and Class Component Quiz

React Lifecycle and Class Component Quiz

Four drills on legacy class lifecycle methods that still show up in interviews and codebases: mount/update/unmount, getSnapshotBeforeUpdate, setState batching, and getDerivedStateFromProps.

Question Bank
Medium
JavaScript
4 questions
quiz
react
interview-prep
design-patterns

157 views

1

List the three commit-phase lifecycle methods of a class component in order, plus what each one is used for. Show a <Clock> that starts and stops a timer.