DEV Community

Discussion on: Writing modern Redux in 2020 - Redux Toolkit

Collapse
 
wfelippesilva profile image
William Felippe • Edited

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?

Collapse
 
markerikson profile image
Mark Erikson

Most of the time, you shouldn't even need to call createAction or createReducer yourself - createSlice is all you'd need.