DEV Community

Discussion on: Abstracting Click Events in React

Collapse
 
r3tter profile image
Yaroslav

This way - onClick={this.handleClick} we also can get event object, coz it passes to function automatically. So there's no need for anonymous function. As you may know - the function of that type are bad for performance, the can trigger non expected re-render.