I am handling a button click in JavaScript. This below code is inside a class, by the way, I am using ReactJS library. Code:
this.handleClick = (bipinValue)=>(event)=>{ console.log("button clicked "+bipinValue+" by this "+event.target.value)}
And inside render method of the same class. Code is below:
<button onClick={this.handleClick('bipin')} value="btn">Click me!<button>
Now my question I that what is this ()=>()=>{} Syntax in above code . I know only this ()=>{}, this is arrow function.
OUTPUT: button clicked bipin by this btn.