Re:ES6 in Depth: Classes
by hokkos on Thursday July 23, 2015 @02:47PM
(#9937701)
Or use :
With es7.classProperties in babel.
https://babeljs.io/docs/usage/experimental/
[ Parent
| on HN ]
Or more tersely:
myMethod = arg => this.value + arg;