Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import { Component } from 'react';
  2.  
  3. class CustomComponent extends Component {
  4.  
  5. handleClick = (data) => (e) => {
  6. ...
  7. }
  8.  
  9. render() {
  10. return (
  11. <div onClick={this.handleClick('someCustomValue')}>
  12. ...
  13. </div>
  14. );
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement