I am creating an img tag that i want to listen to the onLoad event for, but I also need the actual image object so i can check width/height, etc on it. These are created dynamically, so I can't know the id beforehand.
//In the JSX:
<img src={this.generateSrc(config)} onLoad={this.handleOnLoad} />
In normal javascript, I could do:
<img onload="someFunction(this)" />
How do I pass that in ReactJS?