News for hackers. Stuff that matters.
Re:Optimizing React Rendering by dounan on Thursday May 25, 2017 @03:09PM (#14419364)
For this specific example you don't have access to the list index in the constructor.

In general binding like that in the constructor works only if you depend on props, but at that point, there isn't a need to bind at all since you can just reference the prop in the callback.

There are no comments on this comment yet.