I am very confused with Redux as I am learning different methods.
I want to know how many more methods are there like redux-Thunk
, redux-saga
. All of them use a different function like CreateSlice. Which methods are suitable for small projects and what is the main difference between them.
I'd recommend giving the official Redux Style Guide a read.
Generally: at this moment, there are 14818 redux-themed packages available on npm
. It's pretty impossible to name them all ;)
But also, there are clear recommendations by the Redux team:
createApi
form RTK-QuerycreateAsyncThunk
or just thunks. Only if those are not enough, turn to other middlewares like sagaThere are also other libraries like redux-observable etc. Those have a non-deniable market share in the single-digit percentages, but if you are just getting started, go by the official recommendations.
Best get started by reading the official Redux Tutorial. It should cover 90% of all the Redux knowledge you'll ever need.