ClineReactArchitecture

React Cline Rules

Cline rules for React: component patterns, performance, and modern React architecture.

.clinerules
- Use the React 19 Actions API for async operations in event handlers
- Apply useOptimistic for instant UI feedback on mutations
- Use Server Components with streaming for data-heavy pages
- Apply the Slots pattern (children function) for flexible component composition
- Use useDeferred for non-urgent state updates affecting render performance
- Apply React 19 use() for async data in any component (not just Server Components)
- Implement error boundaries with automatic retry for transient failures
- Use React Compiler output; avoid premature manual memoization

How to use with Cline

Create a `.clinerules` file in your project root. Cline reads this file and applies the rules to all AI-assisted coding.

#react#cline#react19#coding-rules

Related Rules