Skip to content

Basic & minimal Implementation of Redux-toolkit for state management

Notifications You must be signed in to change notification settings

rahulranjan14/reduxToolKitDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux Toolkit Minimal Implementation

This project is a simple React application built using Vite, aimed at providing a beginner-friendly introduction to Redux Toolkit. It offers a straightforward implementation of Redux concepts for those who are new to Redux or struggling to understand redux implementation.

Project Overview

The application comprises a single-page interface featuring three main components:

  1. Items Section: This section showcases a list of items, each having buttons for adding them to either the cart or wishlist.

  2. Cart Section: Here, users can view items added to their cart. Each item comes with an option to remove it from the cart if needed and a option to clear cart.

  3. Wishlist Section: Similar to the cart section, users can see items they've added to their wishlist. Like the cart, items in the wishlist can also be removed.

The state management and logic for moving items between the cart and wishlist are implementaed using React-Redux and Redux-Toolkit.

Getting Started

To explore this project:

  1. Clone the repository to your local environment.
  2. Install dependencies by running npm install.
  3. Launch the development server using npm run dev.
  4. Visit the prompted port in your browser to view the application.

Additional Task

If you're eager to explore Redux further or enhance your skills, consider adding new features to this project. One such idea is to implement a "Save for Later" section, where users can move items to "Save for Later" section and further remove items from there. You can refer to the existing "wishlist" and "cart" modules to build this section, leveraging similar functionality and patterns. This hands-on approach offers an opportunity for practical learning and a deeper understanding of Redux concepts in action.

Project Comparison

This same project with same functionalities are implemented using other state management libraries:

Comparing all three implementations can help in understand the differences and benefits of each approach.

Contributing

While contributions are not actively solicited for this project, feel free to experiment with extending its functionality on your own. If you have any suggestions or feedback, please don't hesitate to reach out.

About

Basic & minimal Implementation of Redux-toolkit for state management

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published