User1034446946 posted
Hi
I am building react components and sometimes not all the props are required, and since props is an object all works well.
however when i am building hooks, i have a situation where i don't need all the arguments all the time, is the solution to pass in an object instead, and deconstruct it?