How to properly make REST calls from ReactJS + Redux application?

Posted by Jessica Taylor | Updated on

Want to properly make REST calls from ReactJS + Redux application? The simpliest way, is to do it using redux-thunk package. This package is an redux middleware, so first of all, you should connect it to redux:

This allows you to dispatch async actions along with regular sync actions. Let’s create one of them:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers