Good stuff. We do a lot of this where I work. Question about passing functions as props…
Tim Bell

Hi Tim,

In that situation I favour this approach:

<MyComponent onChange={this.doStuff.bind(this, parameter}/>

We can fall back to binding to ensure that the right parameters are passed in, and avoid creating a closure.

Show your support

Clapping shows how much you appreciated Scott Domes’s story.