Model
The model describes the initial state of a store.
It can be composed of any shape.
If no model is provided, the initial state will be set to undefined
.
type Model = any
Example
// primitivesconst model = 0const model = 'Some text'
// arraysconst model = ['First Todo', 'Second Todo', 'Third Todo']
// objectsconst model = { loading: false, error: null, data: null,}