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.
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。