Understanding complex state management
You will encounter state management when developing big and complex Angular, React, or Vue web applications. So what does state management mean?
Application state management is when your app starts to grow from just being a view or a couple of views. You're probably going to start running into the problem where you want to share some of that application state between different and nested components. An example of that is when you have to create a mechanism where two deep components should always sync. See Figure 14.1 for a diagram of this:
Figure 14.1, shows that Component Y shares state with Component X. Now, there are different ways you could do that. One is bypassing events and passing in properties from a top-level component. Even though you can pass props and events, passing events and props in multiple nested components makes an application hard to...