react-data-fetching

Community

Efficient data fetching in React with SWR.

Authortanaka-mambinge
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Data fetching in React apps often leads to boilerplate, repetitive fetch logic, and inconsistent error handling. This Skill provides a reusable pattern using SWR to centralize data fetching, caching, and revalidation, reducing boilerplate and improving UX.

Core Features & Use Cases

  • SWR-based data fetching: Simplifies data fetching, caching, and automatic revalidation in React apps.
  • Centralized Fetcher: A single fetcher utility that handles auth headers, error handling, and JSON parsing.
  • Type Safety: TypeScript generics to ensure safe API responses.
  • Use Case: Build a products list in a dashboard by fetching /api/v1/products with automatic refresh and optimistic updates.

Quick Start

Create a SWR-powered data fetch in a React component by importing the centralized fetcher and calling useSWR with your API endpoint.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: react-data-fetching
Download link: https://github.com/tanaka-mambinge/dotfiles/archive/main.zip#react-data-fetching

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.