Shipping costs will be calculated based on this address throughout the site.
Select your country
Americas
Argentina
Brazil
Canada
Chile
Colombia
Costa Rica
Dominican Republic
Ecuador
El Salvador
Mexico
Peru
U.S.A.
Uruguay
Europe
Austria
Belgium
Croatia
Czech Republic
Denmark
Finland
France
Germany
Greece
Hungary
Ireland
Italy
Latvia
Malta
Netherlands
Norway
Poland
Portugal
Serbia
Slovakia
Slovenia
Spain
Sweden
Switzerland
United Kingdom
Rest of the world


Pro State Management in JavaScript: Designing, Building and Scaling a Production-Ready State Engine
Ajdin Imsirovic (Author) · Apress · Paperback
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.
Do you have a question about the book? Login to be able to add your own question.

