An app state of notebooks. To get the books state:

const { books } =

Or, to connect with your React component:

import { connect } from "react-redux"

const connector = connect(
  ({ books }) => ({ books }),
  dispatch => ({ dispatch })

const MyComponent = connector(props => {
  // render

Data Structure

all: Book[]

An array of Books.

hash: { [bookId]: Book }

A map which keys are bookId and values are Book.

tree: BookTree

An array of Books with tree structure. A Book which has child notebooks recursively has children property. children is the same structure as tree: an array of Books.

lastUpdatedAt: number

Last datetime when the state was changed

Can you help us improve these docs?

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!