React: Component Lifecycle Events
Based off the diagram, what happens first, the ‘render’ or the ‘componentDidMount’?
rondure
What is the very first thing to happen in the lifecycle of React?
Mounting
Put the following things in the order that they happen: componentDidMount, render, constructor, componentWillUnmount, React Updates
1- constructor,
2- render,
3-componentDidMount,
4-React Updates,
5-componentWillUnmount,
What does componentDidMount do?
set up any subscriptions
React State Vs Props
What types of things can you pass in the props?
The props can be anything from integers over objects to arrays.
What is the big difference between props and state?
props are handled outside of the component, the state inside it
When do we re-render our application?
when we want to change something in the application
What are some examples of things that we could store in state?
all types of data