Questions
To recap what we have learned in this chapter, try to answer the following questions:
- Where can Hooks be called?
- Can we use Hooks in React class components?
- What do we need to watch out for regarding the order of Hooks?
- Can Hooks be called inside conditions, loops, or nested functions?
- What is the naming convention for Hooks?
- How are the rules of Hooks automatically enforced?