Can someone recommend a simple and easy-to-approach tutorial into ES7 decorators? I have used decorators successfully in my previous Python projects, and I'm eager to start using them in JS. Unfortunately, I haven't yet come across a good guide till now.
Comments
Can someone recommend a simple and easy-to-approach tutorial into ES7 decorators? I have used decorators successfully in my previous Python projects, and I'm eager to start using them in JS. Unfortunately, I haven't yet come across a good guide till now.
Take a look at http://babeljs.io
You can enable experimental es7 features: https://babeljs.io/docs/usage/experimental/
Check out the spec: https://github.com/wycats/javascript-decorators