Answer the question
In order to leave comments, you need to log in
How to subscribe to a state change inside a component?
There is some task with which he practically coped, but there is always some kind of but.
repo
I can't figure out how to subscribe to state updates in the Card component. So that everything is displayed correctly.
I will be very grateful for your help.
Answer the question
In order to leave comments, you need to log in
you subscribed to the state when you did mapStateToProps and connect, now the cards are in the component in props this.props.cards
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question