Why thunk is used in react?

Redux Thunk is a middleware that allows you to call the action creators that return a function(thunk) which takes the store’s dispatch method as the argument and which is afterwards used to dispatch the synchronous action after the API or side effects has been finished.21 Ara 2020

Read more

What is thunk function?

In computer programming, a thunk is a subroutine used to inject a calculation into another subroutine . Thunks are primarily used to delay a calculation until its result is needed, or to insert operations at the beginning or end of the other subroutine.

Read more

Should I use Redux saga?

While I wouldn’t say Redux Saga is inherently better than any of the alternatives available, it does have a few benefits that might make you want to consider using it . Redux Saga offers a place completely decoupled from your action creators for you to handle your application’s side effects.

Read more