Answer - You can use an arrow function to wrap around an event handler and pass parameters: this.handleClick(id)} /> This is an equivalent to calling .bind: Apart from these two approaches, you can also pass arguments to a function which is defined as arrow function handleClick = (id) => () => { console.log("Hello, your ticket number is", id) };
We are group of professionals with the same objective for helping school students who are struggling in NCERT Questions Answers. We are just sharing our knowledge for the students and helping them by providing Questions Answers.
At Halpura we are reimagining the actual potentials of quality information resources reaching people across the globe to make an everlasting impact.
Copyright 2017, All Rights Reserved. A Product Design BY CoreNet Web Technology