L
L
Leonid Yakovlev2020-07-22 19:33:09
typescript
Leonid Yakovlev, 2020-07-22 19:33:09

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

1 answer(s)
P
Pavel Shvedov, 2020-07-22
@deleo547

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 question

Ask a Question

731 491 924 answers to any question