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) :
- 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?
- Is create.js the right place to add redux-promise middleware?
- Also, is there a concise syntax to apply multiple middlewares at the same time?