Problems solved by Redux Toolkit (RTK) in Redux
Redux Toolkit was created to solve these three common problems that we face in Redux.
- Too much code to configure the store.
- Writing too much boilerplate code to dispatch actions and store the data in the reducer.
- Extra packages like Redux-Thunk and Redux-Saga for doing asynchronous actions.
Check this article to know Why Redux Toolkit is prefered over Redux.
Redux Toolkit
Redux Toolkit or RTK is an node package that simplify the development by providing utility functions. It is made to simplify the creation of redux store and provide easy state management. It can be easily installed using simple npm commands.
Before the introduction of the Redux toolkit state management was complex in simple redux.
Contact Us