Benefits of Redux Toolkit (RTK)
- Easier state management as compared to Redux
- Boilerplate code for the majority of functions
- Official recommended SOPE library
- Wrapper functions are provided which reduce lines of code
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.