Y
Hacker News
new
|
ask
|
show
|
jobs
by
amk_
3360 days ago
I use and recommend this syntax, but you do have to have babel-preset-stage-2 to enable the class properties transform.
https://babeljs.io/docs/plugins/transform-class-properties/