react-patterns

React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition

Content Preview
---
name: react-patterns
description: React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
---

# React Patterns

## use() Hook (React 19)

`use()` reads values from Promises and Context directly in render. Unlike other hooks, it can be called inside conditionals and loops.

```tsx
import { use } from 'react';

function UserProfile({ userPromise }: { userPromise: Promise<User> }) {
  const user = use(userPromise);
  return <h1>{user.name}</h1>;
}

fu
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/react-patterns.md \
  https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/react-patterns/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/rohitg00/awesome-claude-code-toolkit

Then reference at skills/react-patterns/SKILL.md

Related Skills