Proxy-State is a simple package that provides an easy API for managing and subscribing to global state.
Manipulating the DOM can happen by applying subscribers
to your state object. You can then perform side-effects via opting-in.
The state of your object can be set at all times, and keeps track regardless of whether any listeners are present.