How do I add axios to react-redux-universal-hot-example starter kit?

Viewed 1434

So I picked react-redux-universal-hot-example as a starter kit.

I want to make ajax calls to 3rd party API. (I want to use OpenWeatherMap API)

I want to use axios and react-promise middleware.

The first part installation is easy:

npm install --save redux-promise

npm install --save axios

Then I need to apply redux-promise middleware ... I think it goes into create.js somehow.

So I have several questions (all specific to react-redux-universal-hot-example) :

  1. Is it the right way to do 3rd party calls using axios with redux-promise or the kit already have another way to do ajax requests?
  2. Is create.js the right place to add redux-promise middleware?
  3. Also, is there a concise syntax to apply multiple middlewares at the same time?
1 Answers
Related