F
F
frolldoll2018-04-14 17:38:51
API
frolldoll, 2018-04-14 17:38:51

How to display data from api?

This is how the component looks like in which info with api should be displayed 5ad211bb9c504272246775.png
. If nothing is displayed, then in reduxDevTools you can see that there is this object in the state - 5ad211f5a54af457530565.png
Action - 5ad212260a47b426884428.png
Reducer - 5ad212123e810279625594.png
selector (getCoin) - The following 5ad21237eda03998519573.png
data comes from the api request -

[
    {
        "id": "bitcoin", 
        "name": "Bitcoin", 
        "symbol": "BTC", 
        "rank": "1", 
}
]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question