
Modern front-end teams face heavy toolchains and abstraction sprawl, while many developers lack a first principles understanding of state engines. Pro State Management in JavaScript takes you under the hood, showing you how to build a simple browser-native state management library which tackles dependencies, observability, and inspectability, giving you a practical measure to compare the most popular state management engines of today. This book will teach you to harness the browser s native strengths like events, the DOM, and closures to craft a minimalist, understandable state management library. Giving you a deep understanding so you can ship a working engine adaptable to real web-based applications.
Split into four parts, the book starts by demystifying the event model, exploring topics like capture/target/bubble, DOM vs. custom events, delegation, and ergonomics of closures and module patterns. Part II builds the state engine step-by-step making trade-offs explicit along the way, including micro-benchmarks and surface performance tips. Part III rebuilds popular paradigms to sharpen your intuition. We reconstruct core ideas behind Redux, MobX, Zustand, Recoil and XState (statecharts and transitions) - then compare each to our event-driven engine in terms of clarity, ergonomics, and runtime costs. The final part provides you with projects relating to a searchable/paginated data-table, dashboard widgets with cross-component coordination, and an interactive tree list component.
By the end of this book, you will know the why behind these libraries by building them in miniature, leaving you with a comparative mental model you can apply in any stack.
You Will:
This Books is for:
Intermediate to advanced level developers and front-end engineers who are looking to turbo charge their understanding of state management and engines with the rights tools, frameworks and thinkings models to implement successfully.
Inhaltsverzeichnis
Part I : The Browser Event Model. - Chapter 1: Events and the Event Propagation Model. - Chapter 2: Events in Practice. - Chapter 3: Building a ' to-do' App using A Single Ancestor Listener Approach. - Chapter 4: Events: Additional Options. - Chapter 5: Event Delegation, Composed Path, and Shadow Boundaries. - Chapter 6: Programmatic Events and CustomEvent Patterns. - Chapter 7: Events: Putting it All Together. - Part II Building our State Management Library. - Chapter 8: Event-based State Management. - Chapter 9: Demoing eventState. - Chapter 10: Redux in Miniature. - Chapter 11: Rebuilding Zustand Kernel. - Chapter 12: Comparing eventState and Recoil (Atoms and Selectors). - Chapter 13: Recreating MobX, with Observables and Derivations. - Chapter 14: StateCharts A Minimal Xstate like Interpreter. - Part III Making More Complex Apps with eventState. - Chapter 15: Building an Editable Tree App. - Chapter 16: Building a Filterable, Sortable Data Table with Customizable Pagination. - Chapter 17: Dashboard Widgets and Cross-Component Communication. - Part IV Integrating eventState with Modern Front-end Frameworks. - Chapter 18: Using eventState with React. - Chapter 19: Using eventState with Angular. - Chapter 20: Using eventState with Next. js. - Chapter 21: Using eventState with Vue. - Chapter 22: In Conclusion and Next Steps.
Es wurden noch keine Bewertungen abgegeben. Schreiben Sie die erste Bewertung zu "Pro State Management in JavaScript" und helfen Sie damit anderen bei der Kaufentscheidung.