0.1.0 • Published 1 year ago

@atrium-ui/app-state v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

app-state

A Simple Stupid State Manager.

This State Management system is based on how Events work in HTML5. It uses the bubble and capture mechanics of Events to propegate state updates to every element that wants to use state. All state is global, but each component is bound to a specific scope of the state. But every element can access any state.

The basis of that concept relies on a Custom Element "app-state", which captures and propegates new state of any element contained in its children. Every page can have multiple app-state elements.

TODO:

  • update docs to v2