Hi Mark! You said that I can use createSlice to generate the action creators and action types automatically. So in which moment should I use createAction and createReducer?
Most of the time, you shouldn't even need to call createAction or createReducer yourself - createSlice is all you'd need.
createAction
createReducer
createSlice
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Mark! You said that I can use createSlice to generate the action creators and action types automatically. So in which moment should I use createAction and createReducer?
Most of the time, you shouldn't even need to call
createAction
orcreateReducer
yourself -createSlice
is all you'd need.