Re:React on ES6+
by eskimobloood on Wednesday July 08, 2015 @08:33AM
(#9851100)
You can at least try decorators with babel using[1]
$ babel --optional es7.decorators
or babel.transform("code", { optional: ["es7.decorators"] });
Here[2] is an article that describes how to use it for mixins
- Use old syntax or explicitly add mixin to prototype - Use composition. A bit annoying, because you have to make an extra class
- wait for decorators (?)