Hi :)
When I use your component, I get this error message:
Uncaught Error: A valid ReactComponent must be returned.
Figured, this happens because React is considering the component only valid if its enclosed in div tags. So when changing your code as below, things work properly well.
return (
<div>
<img
{...this.props}
style={style}
src={this.props.src}
onLoad={this.fadeIn}
/>
</div>
)