Reading-Notes

Class 29 Summary :

Advanced State with Reducers :

How can we ensure that an effect hook runs only once?

Can useState() update more than one state variable at the same time?

Is useState() synchronous?

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.
Component Lifecycle Each component in React has a lifecycle which you can monitor and manipulate during its three main phases: Mounting, Updating, and Unmounting

useReducer Hook :

The reducer function

Sources :

source1

source2

source3

source4