To recap what we have learned in this chapter, try answering the following questions:
- How can we extract a custom Hook from existing code?
- What is the advantage of creating API Hooks?
- When should we extract functionality into a custom Hook?
- How do we use custom Hooks?
- When should we create local Hooks?
- Which interactions between Hooks are possible?
- Which library can we use to test Hooks?
- How can we test Hook actions?
- How can we test contexts?
- How can we test asynchronous code?