
Hoc Pattern
patternsdev/skills/react/hoc-patternby patternsdev48bf58a488cdMIT253 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 months ago
Teaches the Higher-Order Component (HOC) pattern for logic reuse. Use when you need to share cross-cutting concerns like authentication, logging, or data fetching across multiple components.
Add to a SourceWeft workspace
- Open the skill in your dashboard and add it to a workspace.
- Enable it for the chats that should use it.
This skill is instructions only: it ships no scripts to execute.
Add to SourceWeftYou will be asked to sign in first, then taken straight to this skill.
Ask your agent to install it
Paste this prompt into Claude Code, Codex, Cursor or another agent that can run commands — or into SourceWeft chat. The agent reads this skill's install guide, shows you its source, license and scripts, and installs it with the SourceWeft CLI once you agree.
Read https://sourceweft.com/skills/gh-patternsdev-skills-hoc-pattern/install.md and install the skill it describes. Before installing, show me its source, license and whether it ships scripts, and wait for my OK. Ask me before changing anything else on my machine.Install it yourself from a terminal
For Claude Code, Codex, Cursor and other local agents. The SourceWeft CLI fetches the skill from its source repository at the commit scanned here, and verifies every file against the hashes recorded when the skill was scanned. If anything differs, nothing is written.
npx @sourceweft/cli skills install @patternsdev/hoc-patternAdd --agent claude-code, codex, cursor or universal to choose which agent gets it (Claude Code by default).
Upstream installer — not verified by SourceWeft
The open-source skills installer fetches the same pinned commit, but does not check the files against the hashes SourceWeft recorded.
npx skills add https://github.com/patternsdev/skills/tree/48bf58a488cd210bcfad280b09c3a00403964d9d/react/hoc-patternSource and attribution
Source:patternsdev/skillsinreact/hoc-patternat commit48bf58a
License: MIT
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from patternsdev/skills

Virtual Lists
patternsdev
Teaches list virtualization (windowing) techniques for rendering large lists and grids efficiently.

View Transitions
patternsdev
Teaches the View Transitions API for animating DOM changes and page navigations in web applications.

Tree Shaking
patternsdev
Explains tree shaking for removing unused JavaScript exports to shrink bundles during the build step.

Third Party
patternsdev
Guides developers in reducing the page-load and Core Web Vitals impact of third-party scripts such as analytics, ads and embeds.

Static Import
patternsdev
Explains ES2015 static import syntax and when to prefer it over dynamic imports for module dependencies.

Singleton Pattern
patternsdev
Teaches the JavaScript singleton pattern for managing one shared instance, with examples and tradeoffs.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Web Design Guidelines
vercel-labs
Reviews UI code against Web Interface Guidelines fetched from a remote source and reports findings as file:line entries.

Vercel React Native Skills
vercel-labs
React Native and Expo best-practice rules covering list performance, animation, navigation, UI patterns, state, and monorepo setup.

Vercel React Best Practices
vercel-labs
Vercel's React and Next.js performance guidelines, organized as 70 rules for writing, reviewing, and refactoring code.