hoc-pattern

Official

Share cross-cutting logic across components.

AuthorPatternsDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Higher-Order Components (HOCs) provide a reusable way to inject shared behavior into multiple components, reducing duplication and increasing consistency across UI code.

Core Features & Use Cases

  • Reuse and compose component logic across many components without duplicating code.
  • Enable cross-cutting concerns (authentication, logging, data fetching) by wrapping components with a single pattern.
  • Use when you want to extend or modify a component's behavior without changing its internal implementation.

Quick Start

Wrap a component with your HOC to inject shared logic like authentication or data fetching.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hoc-pattern
Download link: https://github.com/PatternsDev/skills/archive/main.zip#hoc-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.