1) Based off the diagram, what happens first, the ‘render’ or the ‘componentDidMount’?

This is my reading notes for Code Fellows.

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?

This method is invoked immediately after a component is mounted. If you need to load anything using a network request or initialize the DOM, it should go here.

5)What types of things can you pass in the props?

You can pass things like arguments into components through props.

6)What is the big difference between props and state?

state are things that exist already inside a component and props are passed into the component.

7)When do we re-render our application?

when the user has performed an action which could bring about change to the application.

8) What are some examples of things that we could store in state?

example in forms to keep the values entered by the user updated.

Home