ReduxJS/Toolkit: createSlice and configureStore
The very minimum you need to know
The legacy Redux createStore
could make a grown man cry, and probably has.
createSlice
and configureStore
GREATLY simplifies this process while at the same
time also significantly reducing the boilerplate – you can basically delete
all your actions as they are now defined by the reducers!
createSlice
: each top level object of your state is typically a sliceconfigureStore
: abstracts away the horror that wascreateStore