Reputation: 103
I have an react component and inside it I have state called "user" with some data, I need this state in other component . please how do this with redux ?
Upvotes: 0
Views: 48
Reputation: 467
If user
is part of the component's local state, and the other component is not nested inside it, then you need to move that piece of information out of local state and into Redux's store state.
Upvotes: 1