State management is a very important part of modern web and mobile applications and is something that React is very good at. Handling state management in React applications can be quite confusing, as there are multiple ways you can handle the current state of your application. The projects you created in the first four chapters of this book haven't been focusing on state management too much, something that will be investigated much more in this chapter.
This chapter will show how you can handle state management in React, by creating a global state for your application that is accessible from every component. Before React v16.3, you needed third-party packages to handle global state in React, but with the renewed version of the context API, this is no longer mandatory. Also, with the release of React Hooks...