You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> A collection of the most useful [decorators](https://github.com/wycats/javascript-decorators).
4
-
>
5
-
> Works by default with Babel 5.x. To use with Babel 6+, install [transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy).
3
+
A concise implementation of the three most useful [decorators](https://github.com/wycats/javascript-decorators):
4
+
5
+
-`@bind`: make the value of `this` constant within a method
6
+
-`@debounce`: throttle calls to a method
7
+
-`@memoize`: cache return values based on arguments
8
+
9
+
Decorators help simplify code by replacing the noise of common patterns with declarative annotations.
10
+
Conversely, decorators can also be overused and create obscurity.
11
+
Decko establishes 3 standard decorators that are immediately recognizable, so you can avoid creating decorators in your own codebase.
12
+
13
+
> _**Note:** Decorators work by default with Babel 5.x. For Babel 6+, install [transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy)._
0 commit comments