To recap what we have learned in this chapter, try answering the following questions:
- What are React's three fundamental principles?
- What are the two types of components in React?
- What are the problems with class components in React?
- What is the problem of using higher-order components in React?
- Which tool can we use to set up a React project, and what is the command that we need to run to use it?
- What do we need to do if we get the following error with class components: TypeError: undefined is not an object (evaluating 'this.setState')?
- How do we access and set React state using Hooks?
- What are the advantages of using function components with Hooks, in comparison to class components?
- Do we need to replace all class components with function components using Hooks when updating React?
- What are the three basic Hooks that are provided by React?