React hooks performance dillema

37 views Asked by At

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

0

There are 0 answers