UNPKG

mobx--awesome-connect

Version:

Not official React bindings for mobX, but performant and flexible

8 lines (7 loc) 216 B
import { observable, computed } from 'mobx'; export default class List { @observable todos = []; @computed get unfinishedTodoCount() { return this.todos.filter(todo => !todo.finished).length; } }