• Stars
    star
    1
  • Language
    JavaScript
  • Created about 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This simple project demonstrates the use of modern redux using redux-toolkit which is super easy and understandable. RTK uses Immer.js library by allowing us to make mutable state updates and it does the necessary immutable state updates under the hood through its "provide" function. Every specific state update required in the app is done by slicing that part or logic of the state which has its own reducers, actions etc.. RTK does all the work for us such as defining action creators, action types, etc. automatically using this "slice" pattern. Moreover, it also simplifies the asynchronous state updates using "createAsyncThunk" API. RTK also provides a "configureStore()" API which gives simplified configuration options for store and automatically combines the slice reducers for you. It also has redux-thunk by default, and also allows the use of the Redux DevTools Extension.