Can we set default value of a variable as empty arrow function while destructuring in Javascript?
I was working on a react project and came accross this situation. Is it okay to set an empty arrow function to a variable while destructuring in javascript. Are there any cons if done like this ? const { onClick…