OnClick Event binding in React.js

viewMore = (i,j) => () => {
    console.log(i,j)
}

To pass parameters to event handlers we need to use currying.
With the above method no new functions created all the time while render is called.

Leave a Comment