Y
Hacker News
new
|
ask
|
show
|
jobs
by
acemarke
3360 days ago
Requires the Stage 2 Class Properties syntax to be enabled (via Babel plugin), but yes, that's the "nicest" way to do it, and the current approach recommended by the React team. There's also various binding utilities, like
https://github.com/cassiozen/React-autobind
. I've got discussion of the various binding approaches listed at
https://github.com/markerikson/react-redux-links/blob/master...
.