4 ms·
Nice work. But perhaps you meant to link to https://github.com/mbasso/react-decoration/tree/master/docs https://github.com/mbasso/react-decoration/tree/master/d
by STRML 10y ago
Nice work. But perhaps you meant to link to https://github.com/mbasso/react-decoration/tree/master/docs https://github.com/mbasso/react-decoration/tree/master/docs instead? The releases page only shows a single release and two decorators.
It is also worth noting that the decorator syntax is still not final, and using it with Babel 6 requires https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy https://github.com/loganfsmyth/babel-plugin-transform-decora.... More details on the decorator deprecation is in that repo.
- pault 10y agoI don't see anything here, with the exception of the debounce decorator, that isn't just an excuse to use a decorator for some reason. All of the examples can be implemented without decorators with the same amount of complexity and clarity.
- paulftw 10y agoThat's what I thought, and there are lodash & underscore to do twenty different flavours of debounce. However, stuff like @killEvent and @stopPropagation does make sense.