aidd-react

Enforce React component best practices with binding/presentation splits and useObservableValues.

377|33|Updated Jul 3, 2025
One-click install
npx skills add https://github.com/paralleldrive/aidd --skill aidd-react
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aidd-react
Source: https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-react
Command: npx skills add https://github.com/paralleldrive/aidd --skill aidd-react

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enforces React component best practices, helping developers create smaller, testable, and predictable components by implementing the binding component/presentation split and using useObservableValues.

Core Features & Use Cases

  • Binding Component & Presentation Split: Keeps data binding separate from pure rendering, improving component quality.
  • Use Cases: Ideal for creating or modifying React components, especially when working with reactive bindings and action callbacks.

Quick Start

Run /aidd-react to create or modify React components and implement best practices for binding and presentation.

Frequently Asked Questions about aidd-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the binding and presentation split in React components?

The binding and presentation split in React components separates data binding from pure rendering. This pattern improves component predictability and testability by keeping reactive bindings and action callbacks isolated from presentation logic.

How do I use useObservableValues in React components?

You use useObservableValues in React components to manage reactive bindings within the presentation split. It enables predictable state handling by enforcing observable patterns when creating or modifying components with action callbacks.

How do I enforce React component best practices when modifying existing code?

You enforce React component best practices by applying the binding component and presentation split. This refactoring process separates data binding from pure rendering, resulting in smaller, testable, and predictable components.

Does this React component pattern work for both creating and modifying components?

Yes, the binding component and presentation split pattern works for both creating and modifying React components. It is specifically designed to implement best practices for reactive bindings and action callbacks in either scenario.

Why should I separate data binding from rendering in React?

Separating data binding from rendering in React produces smaller, testable, and predictable components. This split keeps reactive bindings isolated, improving overall component quality and making action callbacks easier to manage.

Can I use this approach for React components with reactive bindings and action callbacks?

Yes, this approach is ideal for React components utilizing reactive bindings and action callbacks. It enforces best practices by implementing the binding component and presentation split alongside useObservableValues for predictable state.