The react lifecycle is important in order to dynamically control actions of the website based on certain events. “If you want actions performed after the rendering of the site is complete”
Identifying the differences between State and Props is important since they have different use cases and applications.
Render happens first.
A constructor for a component is the first thing that happens before the mounting phase begins.
constructor, render, reactUpdates, componentDidMount, componentWillUnmount.
componentDidMount is used for any action need after the component is rendered.
You can pass things that functions might need, similar to arguments. Ex: “Initial Count, Titles/Subtitles? source
“Props you pass to a component while state is handled inside of a certain component. State updated inside component, props updated outside component. When you update state it will rerender the app.”
You re-render the application once the user has performed an action and the state has changed.
You can store dynamic values “Counter application”. Form inputs.
How do you use state?
Does the entire application need to update if state is changed or just the component?