Redux Toolkit

 React jsRedux has Redux is an independent library . It is used to manage the state in react. When the application is small  We can use react hooks if the application. if the application is big it will be not easy to manage state with hooks. If you use redux toolkit there can you store , slice, reducer and actions. First, If you use slice you can all data are managed and you use an initial state and other actions like adding. If you deleting or any kind of action in our application.You need to pass Your actions to reducers and then add them to the store. If you can add as many slice actions resources in Your store. Next is you need to wrap your index.js app with provider and pass store in it then all the components inside app will have the access to use it .Then if you  need to add any functionality or any http request you can do  just need to add action in your slice thus it becomes so much easy to access data from any where 


Comments

Popular posts from this blog

Backend

React simple discussion