Skip to content

Comment on Show HN: ES7 Decorator library adds types checking, memoization, and more to JS

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/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.