I have a problem. I want to set state another component from one component but I don't know how to do it?
I have a problem. I want to set state another component from one component but I don't know how to do it?
Component1: The component that you want to change the state from that.
Component2: The component that you want to change its state from another component.
redux to manage the state and define a
mapStateToProps function in Component2 to affect it by changing the
state by Component1.