This article briefs about middlewares in React and how redux-thunk works.
What is a Middleware?
They get executed with every action we dispatch.
Before we get into middlewares, the basic algorithm of the redux is
- Action creators produce an action.
- The action gets fed to…