Quiz

Quiz yourself on the knowledge you learned about the state and lifecycle methods.

Quiz

1

Which of these lifecycle methods are only run once (i.e. when the component is first rendered)?

A)

componentDidMount()

B)

static getDerivedStateFromProps(nextProps, prevState)

C)

componentWillUpdate(nextProps, nextState)

D)

componentDidUpdate(prevProps, prevState, snapshot)

Question 1 of 70 attempted

Get hands-on with 1200+ tech skills courses.