“Render”
The Mounting Phase
constructor
render
React Updates
componentDidMount
componentWillUnmount
The componentDidMount is used for handling network requests and setting up any subscriptions.
Similar to an argument in a vanilla JS function, there are a lot of things that can be passed in the props, such as an initial count in counter.
With state, changes occur inside of the component. With props, changes come from outside the component and receive information from outside the component, such as from a parent component.
The application re-renders when there is a change in the component’s state or props
Data a user inputs, the current value of a counter
How does the lifecycle of react apply to the work we’ve been doing in the labs?