Api / JavaScript /
createStore( state )
Creates a new Store.
Arguments
state Any
The initial state of your app.
Returns Object
A new Store instance.
Example
import { createStore } from 'dop'
const store = createStore({ books: 0 })
store.state // { books: 0 }