The purpose of this class is to teach the student about:
- What
component lifecycle
is - The purpose and use of
useEffect()
- Making an
API call
both inside and outsideuseEffect()
- Some third party React tools (
UI toolkits
andutility libraries
)
- In React any component renders in stages to the DOM: we call this the
component lifecycle
- The purpose of the different lifecycle stages is to solve rendering issues that sometimes can't easily be controlled via state and props
- 4 groups of lifecycle methods: mounting, updating, unmounting and errors
Show the following image to illustrate the place and purpose of each lifecycle method. Then show how to access the methods in a class-based component
- 2 broad categories:
UI toolkits
andutility libraries
UI toolkits
help us structure our user interfacesUtility libraries
help us solve functional problems that come up during development
Show example of a UI toolkit, like Semantic UI. You can illustrate how to use it by building a Menu
Show example of a utility library, for example Redux