Quiz

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

We'll cover the following...

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)


1 / 7