Skip to content
OpenSmartRoute
Skillv1.0.0

react-patterns

React best practices and patterns

by khalidsaidi(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from khalidsaidi/skillrunner (registry/skills/react-patterns/SKILL.md). Install upstream with npx skills add khalidsaidi/skillrunner --skill react-patterns. Copyright stays with the author.

React Patterns

  • Composition: Prefer composition over prop drilling; use context sparingly
  • State: Lift state only as needed; use useReducer for complex state
  • Effects: Keep effects minimal; extract logic to custom hooks
  • Keys: Stable keys for lists; avoid index when order can change
  • Memoization: React.memo, useMemo, useCallback only when profiling shows benefit

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/khalidsaidi-skillrunner-react-patterns/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

khalidsaidi-skillrunner-react-patterns.ocm.jsonjson
{
  "ocm": "1",
  "id": "khalidsaidi-skillrunner-react-patterns",
  "kind": "skill",
  "name": "react-patterns",
  "description": "React best practices and patterns",
  "publisher": "khalidsaidi",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "react",
      "patterns",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "React best practices and patterns"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/khalidsaidi/skillrunner",
      "path": "registry/skills/react-patterns/SKILL.md",
      "ref": "c4da92076cba308457cd72bd1ab06c087e2cdf96",
      "url": "https://github.com/khalidsaidi/skillrunner/blob/c4da92076cba308457cd72bd1ab06c087e2cdf96/registry/skills/react-patterns/SKILL.md",
      "key": "khalidsaidi/skillrunner/registry/skills/react-patterns/SKILL.md"
    }
  },
  "instructions": "# React Patterns\n\n- **Composition**: Prefer composition over prop drilling; use context sparingly\n- **State**: Lift state only as needed; use useReducer for complex state\n- **Effects**: Keep effects minimal; extract logic to custom hooks\n- **Keys**: Stable keys for lists; avoid index when order can change\n- **Memoization**: React.memo, useMemo, useCallback only when profiling shows benefit",
  "cost": {
    "context_tokens": 98
  }
}

Fetch it by URL: GET /api/v1/registry/khalidsaidi-skillrunner-react-patterns/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.