October 2019
Intermediate to advanced
426 pages
11h 49m
English
After installing MobX, it is time to set up our MobX store. The store will store all state, and the related computed values and actions. It is usually defined with a class.
Let's define the MobX store now:
import { observable, action, computed, decorate } from 'mobx'
import { fetchAPITodos, generateID } from './api'
export default class TodoStore {
Read now
Unlock full access