Closed cpsubrian closed 8 years ago
Thanks @cpsubrian for this linking https://twitter.com/dan_abramov/status/778948609752662016 I was thinking this would be a bit complex. Why don't you bind each individual method?
FWIW I don't think whatever the initial problem is affects me anymore (my build stack changes with every project heh).
I'm gonna close this .. I think this looks like an interesting idea. Feel free to comment though!
Solves #20 and can help avoid some collisions with React tooling. For example, I'm having issues with the getters colliding with some react babel transforms.
With this, someone could easily publish a
react-autobind-decorator
that would look like the following:Or you might only want to bind event 'handlers':