Creates a simple state observe function and a setValue function to update the value. When observed, the current state if any will be immediately and synchronously sent to the observer callback.
Optional
The initial value of the state.
Creates a simple state observe function and a setValue function to update the value. When observed, the current state if any will be immediately and synchronously sent to the observer callback.