what is computed in mobx code example
Example: what is computed in mobx
import {observable, computed} from 'mobx'
class Page {
@observable title = ''
@observable published = false
@observable author = null
@computed get authorName () {
return this.author || 'Anonymous'
}
}