This is the entry point to your application. An application can be describe in three pieces, init
, subscribe
, and observe
. Init is a required tuple of your initial data in the form of [initialState, initialEffect]
. Subscribe is an optional function with the signature (state) => [sub1, sub2, ...]
. Observe is an optional function with the signature ([currentState, currentEffect], action) => {}
and is used for debugging. These pieces all exist inside an object, and all together, they may look something like this: