Which would be better in terms of performance
consider the following:
Component A
: uses the theme hook
Component B
takes props from A
,
Would it be more performant to use the theme hook in component B
or just pass it from component A
to B
as a prop?
Also, if passing the value as a hook, what if we just add more components, would it still be the same, let's say we add A
-> B
-> C
-> D