Reading-Notes

Class 28 Summary :

Component Lifecycle / useEffect() :

Why do we not need more .html pages in a multi-page React app?

If we wanted a component to show up on every page, where would we put it and why?

What does routing do with the components that were rendered when a new route is requested?

What does props.children contain?

How do useState() and this.setState() differ?

Document the following Vocabulary Terms:

Term  
State Hook the State of a component is an object that holds some information that may change over the lifetime of the component.and Hook that allows you to have state variables in functional components , it takes the initial state as an argument and returns an array of two entries.
Mounting and Un-Mounting Mounting is the process of outputting the virtual representation of a component into the final UI representation (e.g. DOM or Native Components). & Un-Mounting: This method is called just before the component gets destroyed. Any clean up statements should be executed inside this method.

Effect Hook :

image1

Sources :

source1

source2

source3

source4

source5