Case Study Overview
# Project Overview
ShanBazar is a next-generation e-commerce platform designed to bridge the gap between static browsing and interactive shopping experiences. Built with **React 19**, it leverages **Redux** and
**TanStack Query** to deliver instant page loads and seamless state synchronization.
## Technical Architecture
The application is structured as a modular Single Page Application (SPA).
- **Frontend**: React 19, React Router v7
- **State Management**: Redux Toolkit (Client State), TanStack Query (Server State)
- **Styling & Animation**: Tailwind CSS v4, Framer Motion
- **API Layer**: Axios with custom interceptors for standardized communication
## Core Functionalities
1. **Interactive Cart**: Real-time cart management with instant price updates and quantity controls using Redux.
2. **Optimized Data Fetching**: Smart caching and background updates ensure users always see fresh product data without loading spinners.
3. **Engaging UI**: Smooth entry animations and micro-interactions enhance the perceived performance and user delight.
The Challenge
Challenges Faced Managing complex state synchronization between the server (API data) and client (shopping cart) while maintaining a high-performance, jitter-free user interface.
My Solution
Adopted a hybrid state management approach: **TanStack Query** handles caching and background synchronization of product data, while **Redux Toolkit** manages the synchronous client-side cart interactions. This separation of concerns significantly improved render performance and code maintainability.