Hacker News new | past | comments | ask | show | jobs | submit login

I wrote a small utility for using mixins with my React components. I've been finding it really useful. The notes assume you're using ES7 decorators. But you could easily use it with ES5/6 syntax by treating it as a normal function and just passing your class to it.

https://www.npmjs.com/package/mixin-decorator

edit: a link would be helpful, right?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: