reading-notes

301_Read_02

React Lifecycle

Answers.1

  1. Based off the diagram, what happens first, the ‘render’ or the ‘componentDidMount’?
  2. What is the very first thing to happen in the lifecycle of React?
  3. Put the following things in the order that they happen: componentDidMount, render, constructor, componentWillUnmount, React Updates?
  4. What does componentDidMount do?

React State vs. Props

Answers.2

  1. What types of things can you pass in the props?
  2. What is the big difference between props and state?
  3. When do we re-render our application?
  4. What are some examples of things that we could store in state?

Bookmark and Review