UNPKG

freshpack

Version:

Command line scaffolding tool for react apps

22 lines (17 loc) 277 B
// @flow /* eslint import/prefer-default-export: 0 */ import { observable } from 'mobx'; export class Counter { @observable value = 0; increase() { this.value += 1; } decrease() { this.value -= 1; } double() { this.value = this.value * 2; } }