react-key-prop

Community

Render React lists with stable, unique keys.

Authorflpbalada
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses unstable UI rendering by ensuring React list items always receive stable, unique keys, preventing item identity loss during re-renders.

Core Features & Use Cases

  • Enforce using data-derived IDs as keys
  • Avoid using array indices for dynamic lists
  • Provide guidance on when to generate IDs once data is loaded

Quick Start

  • Identify list rendering code using map and ensure key uses a stable ID from data
  • If IDs are missing, generate them once when data loads and attach to items
  • Avoid using the array index as the key for dynamic lists

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-key-prop
Download link: https://github.com/flpbalada/my-opencode-config/archive/main.zip#react-key-prop

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.