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)}
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)}