Introduction
In the realm of modern web development, the principle of "Put State in the Right Place" has emerged as a cornerstone for building scalable and maintainable applications. This concept, central to Delaney Gillilan's presentation at SSW 2026, underscores the critical importance of state management in hypermedia frameworks. At the heart of this discussion lies Datastar, a framework that exemplifies how state can be managed effectively to enhance both developer productivity and user experience.
The problem with state management in web applications is akin to a mechanical system with misaligned gears: when state is not placed correctly, it creates friction. This friction manifests as inefficiencies, bugs, and poor performance. For instance, if state is stored in the wrong layer—say, in the UI instead of a centralized store—it can lead to data inconsistencies and unnecessary re-renders, much like a machine overheating due to improper lubrication.
Datastar addresses this by providing a structured approach to state management, ensuring that state is localized and predictable. By treating state as a first-class citizen, Datastar prevents the common pitfalls of global state pollution and unidirectional data flow violations. This is analogous to a well-designed engine where each component operates within its designated role, minimizing wear and tear.






