Questions
To recap what we have learned in this chapter, try to answer the following questions:
- What problem do contexts avoid?
- What are the three parts that contexts consist of?
- Are all parts required to be defined in order to use contexts?
- What is the advantage of using Hooks instead of traditional context consumers?
- What is an alternative to contexts and when should we use it?
- How can we implement dynamically changing contexts?
- When does it make sense to use contexts for state?