Closed jondashkyle closed 6 years ago
Create a little Choo plugin which exposes a state.page function. You can then use that instead of instantiating .page with content state. For example:
state.page
.page
function view (state, emit) { var children = state.page().children().toArray() }
Yep, given current design, plugin could just look like
function plugin (state, emitter) { state.page = new Nanopage(state) }
Added in #8
Create a little Choo plugin which exposes a
state.page
function. You can then use that instead of instantiating.page
with content state. For example: