How to download the API via url in React?

There is such a reference https://api.coinmarketcap.com/v1/ticker/?limit=10, which contains an array of currencies with changing prices.

How to download it and transfer to state with react/redux?
Any info, links to similar examples would be useful!

With such find out m had no business, asking for help!
June 8th 19 at 17:04
1 answer
June 8th 19 at 17:06
Google it shows everywhere.
the concept of the reakt Redux
1. it creates action, it is an asynchronous request to the API, it dispatched 3 events, the query is executed, completed, failed.
2. created 3 Manager, each of which receiving a particular event modifies the stor in a certain way. for example {isRun: false, response: [], status: true}
3. creates a component that will mapitse to state on this thread, it is forwarding in the corresponding component action.
4. Depending on the tasks action is invoked at the right part of the component. Ala at the time of the mount, with the time change some props at the time of the event onclick / OnChange of any element.

The rest will be done for you render.
Good luck.
Examples of how this is done is in the Gita, any project with a stack of reakt/Redux, Google.
As well as a browser to solve the problem ?

Failed to load swapi.co/api/people/?format=json: Redirect from 'swapi.co/api/people/?format=json' to 'https://swapi.co/api/people/?format=json' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request''s mode to 'no-cors' to fetch the resource with CORS disabled.
- vernie92 commented on June 8th 19 at 17:09
answered in the next branch, Kors tells the browser that the request for him left, the browser protects itself from the answer, otherwise will not. The bypass course is done by proxy through your backend. - sally_Carro commented on June 8th 19 at 17:12

Find more questions by tags JavaScriptReact