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.