realtime-react-hooks

Community

Real-time data for React apps.

Authorzangxin75
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides robust patterns for integrating real-time data streams (SSE, WebSockets) into React applications, ensuring UIs stay up-to-date without manual refreshes.

Core Features & Use Cases

  • Real-time Data Hooks: Offers custom hooks for Server-Sent Events (useSSE) and WebSockets (useWebSocket) with built-in reconnection logic.
  • Optimistic UI Updates: Integrates with SWR for seamless, real-time cache updates.
  • Use Case: Building a live stock ticker dashboard where prices update instantly as they change, or a chat application where new messages appear immediately.

Quick Start

Use the realtime-react-hooks skill to connect to the SSE stream at '/api/events'.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: realtime-react-hooks
Download link: https://github.com/zangxin75/openclaw-skills/archive/main.zip#realtime-react-hooks

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.