Quantcast
Channel: using axios and Redux to manage JSON data - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Dale Baldwin for using axios and Redux to manage JSON data

$
0
0

You could move the JSON out of the public folder and just import it into your app.

If you want to do it in redux using axios then having an action handle the API call is the best way to do it.

I would also look at replacing axios with fetch as it will save you an import or two.


Viewing all articles
Browse latest Browse all 2

Trending Articles