danneu
12/19/2016, 4:41 AMclass Counter {
constructor () {
extendObservable(this, {
count: 0,
get twice() { return this.count * 2 }
})
}
}
which is exactly what i want. but i've been unable to think of a way to dry it up