Class 29 Notes
Review, Research, and Discussion
- We can insure that a useEffect hook runs only once by adding an empty [] to the parameters of the function.
- You can update more than one state at one time by using [] with multiple state variables inside.
- UseState is a synchronous function.
Terms
- Component Lifecycle: The component lifecycle is from mounting to dismounting.