react

Build, modify, and debug React components and hooks for EOS SaaS interfaces.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/antonyfmunoz/OS --skill react-antonyfmunoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/antonyfmunoz/OS/tree/main/skills/tools/react
Command: npx skills add https://github.com/antonyfmunoz/OS --skill react-antonyfmunoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React development in the EOS SaaS codebase is prone to subtle UI bugs like incorrect state modeling, stale closures, effect loops, and misuse of client vs server state. This Skill helps you write React components that behave predictably under Strict Mode, concurrent rendering, and Suspense.

Core Features & Use Cases

  • Correct component architecture: declarative, pure rendering with UI = f(state), keeping side effects out of render.
  • Hooks and state discipline: when to use client state (useState/useReducer), derived state (compute during render), and server state (React Query).
  • EOS-aligned forms and validation: React Hook Form + Zod conventions for typed, validated forms.
  • Debugging and preventing common React failures: re-render loops, stale closures, Strict Mode double-invocation issues, key identity mistakes, and dependency pitfalls.
  • Modern React 18/19 capabilities: Actions, useActionState, useOptimistic, useFormStatus, concurrent patterns, and React 19 use() with Suspense-ready cached promises.

Quick Start

Use the react skill when updating the EOS SaaS UI in /opt/OS/saas to implement or debug a component, hook, or rendering flow while following React 18/19 and the project’s React Query + RHF + Zod rules.

Frequently Asked Questions about react

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

FAQPage Schema
How do I prevent React Strict Mode double-invocation issues and effect loops?

Preventing React Strict Mode double-invocation issues requires keeping side effects out of render and maintaining pure components. This approach ensures predictable behavior by enforcing React purity rules and verifying correct hook dependency arrays.

What is the best way to manage server state vs client state in React Query?

The best way to manage server state vs client state is using React Query for server state and useState or useReducer for client state. Derived state should be computed during render to avoid stale closures and unnecessary re-renders.

How do I build typed and validated forms with React Hook Form and Zod?

Building typed and validated forms with React Hook Form and Zod involves integrating Zod schemas for type-safe validation. This ensures robust form handling by validating data on the client side before submission.

Does React 19 use() work with Suspense for cached promises?

Yes, React 19 use() works with Suspense for cached promises. This modern capability allows you to unwrap promises directly within components, enabling Suspense-friendly rendering patterns for asynchronous data fetching.

Why does my React component have stale closures and incorrect state modeling?

Your React component has stale closures and incorrect state modeling due to side effects inside the render phase and improper hook usage. Enforcing declarative pure rendering with UI = f(state) resolves these common UI bugs.