Redux

Redux is an open-source JavaScript library for managing application state. It is most commonly used with libraries such as React for building user interfaces.

 

Redux Thunk is a middleware that lets you call action creators that return a function instead of an action object. That function receives the store’s dispatch method, which is then used to dispatch regular synchronous actions inside the body of the function once the asynchronous operations have completed.

 

Reference : https://codepen.io/jerrylow/pen/eyZYdN

Suggest Edit