Read the instructions and examples in this document.
Apply the patterns to your implementation, adapting to your specific context.
Verify your implementation against the details and edge cases listed above.
Harness Integration
Type: knowledge — this skill is a reference document, not a procedural workflow.
No tools or state — consumed as context by other skills and agents.
Success Criteria
The patterns described in this document are applied correctly in the implementation.
Edge cases and anti-patterns listed in this document are avoided.
1---2name: react-20263description: React 20264metadata:5 source: https://skillmd.com/skills/intense-visions/react-20266---7# React 202689> Modern React patterns for 2025-2026 including React 19, Compiler, and AI-integrated UI1011## When to Use1213- Starting a new React project in 2025 or later14- Upgrading an existing React 18 project to React 1915- Evaluating whether to adopt the React Compiler16- Building AI-powered UI features with streaming and progressive enhancement1718## Instructions1920**React 19 key changes:**21221. **React Compiler (beta to stable):** Automatically memoizes components. Remove manual `React.memo`, `useMemo`, `useCallback` where safe. Install `babel-plugin-react-compiler`.23242. **`use()` hook:** Read promises and context inside render — can be used conditionally:2526 ```typescript27 function UserProfile({ userPromise }: { userPromise: Promise<User> }) {28 const user = use(userPromise); // suspends until resolved29 return <div>{user.name}</div>;30 }31 ```32333. **Server Actions:** Functions marked `'use server'` can be called from client components as async functions — replaces form submission API routes:3435 ```typescript36 'use server';37 async function updateProfile(formData: FormData) {38 await db.users.update({ name: formData.get('name') });39 }40 ```41424. **`useFormStatus` and `useOptimistic`:** Built-in hooks for form state and optimistic UI updates.43445. **`ref` as prop:** No more `forwardRef` — pass `ref` directly as a regular prop in React 19.4546## Details4748**React Compiler adoption path:**4950- Install: `npm install babel-plugin-react-compiler`51- Enable in Babel/Vite config52- Run `react-compiler-healthcheck` to identify files that need refactoring53- Remove manual memoization incrementally as you verify compiler output5455**AI-integrated UI patterns:**5657- Use `useOptimistic` for streaming AI responses58- Pair Server Actions with `startTransition` for non-blocking AI calls59- Stream AI output via the Vercel AI SDK (`useChat`, `useCompletion`) which wraps `ReadableStream` in React-friendly hooks60- Progressive enhancement: render static content server-side, enhance with streaming AI client-side6162**React 19 migration notes:**6364- `ReactDOM.render` removed — use `createRoot`65- `defaultProps` for function components removed — use default parameter values66- `string` refs removed — use callback refs or `useRef`67- Concurrent features now enabled by default with `createRoot`6869**Forward compatibility:**7071- Write components as async Server Components where possible — they compose forward into RSC-first architectures72- Prefer `use()` over `useEffect` + state for async data7374## Source7576https://patterns.dev/react/react-20267778## Process79801. Read the instructions and examples in this document.812. Apply the patterns to your implementation, adapting to your specific context.823. Verify your implementation against the details and edge cases listed above.8384## Harness Integration8586- **Type:** knowledge — this skill is a reference document, not a procedural workflow.87- **No tools or state** — consumed as context by other skills and agents.8889## Success Criteria9091- The patterns described in this document are applied correctly in the implementation.92- Edge cases and anti-patterns listed in this document are avoided.
Run npx get-skill add intense-visions/react-2026 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
React 2026 It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Intense-Visions (@intense-visions) published this skill. Their other Agent Skills are listed on their SkillMD profile.