Skip to content

dev-akash-sarker/react-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Product Dashboard

A React-based product dashboard application demonstrating React Router v6, React Query, and basic CRUD operations with a dummy API. This project fetches product data from DummyJSON, displays it, and allows updating individual product titles using mutations.


Table of Contents


Features

  • Fetch all products and display them in a responsive grid.
  • View detailed product information on a separate page.
  • Update a product's title via a PUT request using React Query mutations.
  • Loading, success, and error states handled for all API interactions.
  • Navigation between pages using React Router v6.
  • Developer-friendly tooling with React Query Devtools.

Technologies

  • React 18 – UI library
  • React Router v6 – Client-side routing
  • React Query (@tanstack/react-query) – Data fetching, caching, and mutations
  • Tailwind CSS – Styling
  • DummyJSON API – Mock product data for testing

Project Structure

src/ │ ├── App.jsx # Root component with navigation ├── Products.jsx # Fetches & lists all products ├── Product.jsx # Fetches single product & allows updating title ├── main.jsx # Entry point, sets up Router & QueryClientProvider └── index.css # Tailwind CSS styles


Getting Started

Prerequisites

  • Node.js v18+
  • npm or yarn

Installation

# Clone the repo
git clone https://github.com/dev-akash-sarker/react-query.git
cd react-product-dashboard

# Install dependencies
npm install
# or
yarn install

# Run the development server
npm run dev
# or
yarn dev

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •