# deepsweet/hocs

:bento: Higher-Order Components for React

Repository: https://github.com/deepsweet/hocs
Canonical: https://ross.abutalabs.com/products/hocs
Homepage: https://github.com/deepsweet/hocs/issues/31
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, higher-order-component, hoc, recompose, react-native
Archived: true
Last push: 2022-12-08T22:25:57+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3320, "days_push": 1364, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2048, forks 65 (observed 2026-08-28T04:06:09.016411+00:00)

## What it is
A collection of Higher-Order Components (HOCs) for React, covering utilities like prop omission, lifecycle handling, debounced/throttled handlers, safe timers, media query props, and debug helpers. It is designed to complement Recompose and works with React and React Native.

## Use cases
- omit unnecessary props before spreading into a React component
- debounce or throttle onChange handlers declaratively
- clear timers automatically when a component unmounts
- map CSS media query matches to boolean props
- run side-effect callbacks when props change
- log props or trigger debugger during render

## When to avoid
- starting a new React project — modern React favors hooks over HOCs
- you need actively maintained dependencies — the repo was archived in July 2023 and is read-only

## Facets
- artifact type: library
- maturity: abandoned
- function: ui-components, state-management, middleware
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: react, higher-order-components, hoc, recompose, react-native, archived, nodejs

## Member repositories
- deepsweet/hocs (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.016411+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:56.403409+00:00, confidence not recorded.
  - readme: https://github.com/deepsweet/hocs (fetched 2026-08-28T04:06:09.016411+00:00, sha 2c7385ee3437)
  - homepage: https://github.com/deepsweet/hocs/issues/31 (fetched 2026-08-29T10:38:01.874806+00:00, sha 8f20b89b94cd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
