in React JS by
Q:

What are the differences between redux-saga and redux-thunk?

1 Answer

0 votes
by

Both Redux Thunk and Redux Saga take care of dealing with side effects. In most of the scenarios, Thunk uses Promises to deal with them, whereas Saga uses Generators. Thunk is simple to use and Promises are familiar to many developers, Sagas/Generators are more powerful but you will need to learn them. But both middleware can coexist, so you can start with Thunks and introduce Sagas when/if you need them.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
0 votes
asked Dec 8, 2020 in React JS by SakshiSharma
0 votes
asked Mar 3, 2020 in React JS by miceperry
0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
asked Dec 15, 2020 in Sql by SakshiSharma
...