Redux Typescript
There are two library for redux,
- redux-toolkit
- create a slice for reducer, action = reducer key name
- reduxsauce
- normal createActions, createReducer
I recommend redux-toolkit, because it has better support for typescript.
It restrict PayloadAction<SOMETHING>
for action creator and reducer.
But the downside is action must be binded to reducer.
Must need to create new action for dispatch two actions.