Redux Toolkit (RTK) is the official, recommended way to write Redux today. It eliminates the notorious boilerplate of classic Redux — manual action types, action creators, immutable update logic, store setup — while keeping the same core principles.
The boilerplate problem RTK solves
= ;
= () => ({ : });
() {
(action.) {
: { ...state, : state. + };
: state;
}
}
