Redux Toolkit (RTK) આજે Redux લખવાનો અધિકૃત અને ભલામણ કરેલ રસ્તો છે. તે ક્લાસિક Redux ના કুખ્યાત boilerplate ને દૂર કરે છે — મેનુયલ action types, action creators, immutable update logic, store setup — જ્યારે અલગ મૂળ સિદ્ધાંતો સાચવે છે.
RTK જે boilerplate સમસ્યા હલ કરે છે
= ;
= () => ({ : });
() {
(action.) {
: { ...state, : state. + };
: state;
}
}
