showing results for - "what is computed in mobx"
Jonathan
01 Jun 2017
1import {observable, computed} from 'mobx'
2
3class Page {
4  @observable title = ''
5  @observable published = false
6  @observable author = null
7
8  @computed get authorName () {
9    return this.author || 'Anonymous'
10  }
11}
12