I am contemplating whether I should pass the whole object, vs passing the single required key of the object to my React Functional Component.
I know Typescript passes by reference so there is not any performance impact, but I want to know what is a better practice as far as programming paradigms and best practices are concerned.
The object in question is fairly big, having 11 keys. A couple of keys have objects and array of objects as values.
What I need in my FC is just a key of type string.