Summary
In this chapter, we discussed local states and global states. Local states are preferable whenever possible, and we learned some techniques to use local states effectively. However, global states play a role where local states do not, which is why we looked at when you should use global states instead.
In the next three chapters, we will learn three patterns to implement a global state in React; in the next chapter specifically, we will start with utilizing React context.