0

I am new to react and need to learn that and I have method like this

const test = (e) => {
 e.stopPropagation();
}

And I am little bit confused in what are the way correct way to call this and reason ?

={(e) => test(e)} or ={test} or {test(e)}
SURTI ABHI
  • 64
  • 1
  • 5

0 Answers0