Manage Channel State in React
State management is a fairly complex topic in the front-end development world. At first glance it’s very easy, but state management code can quickly morph to become complex and error-prone. Despite the complexity, applications would not be very useful without state and a way to manage that state. We’ll look at some of the different state-management options, then continue the chapter with the techniques the community has largely adopted.
State management is important to us because we need a place to store and work with the Phoenix Channel. We need to fully control the Channel throughout the application life cycle to reduce the risk of bugs.
React, and essentially every front-end library, has undergone an evolution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access