I am new to react and redux. I have a scenario where there are nested components like this.
A > B > C > D
There is a property used in A component and it will be used in D component. So, I have two approaches:
- Get state from redux store in component A and then pass it along as props to all it's child components even though it will be used only in D component.
- I should connect to redux store in component D and fetch that property from there.
What is the correct approach?