For example I have 3 components, here is the nest relationship
<a>
<b>
<c>
</c>
</b>
</a>
should I create useSelector in compontn a? and pass props to c. or should I just useSelector in c? what will be the main difference?
For example I have 3 components, here is the nest relationship
<a>
<b>
<c>
</c>
</b>
</a>
should I create useSelector in compontn a? and pass props to c. or should I just useSelector in c? what will be the main difference?
Unless you need the the some data from the useSelector() in Component a, you can choose to remove it from Component a and create it in the Component c. Or you can have them in both Component a and Component c