gaearon/react-side-effect
Create components whose nested prop changes map to a global side effect observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4219
- days_rel: n/a
- days_push: 1278
- n_releases_24m: 0
Adoption not part of the score
1215 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React library providing a higher-order component that maps nested prop changes across the component tree to a global side effect. It gathers props from all mounted instances, reduces them to state, and invokes a client-side handler, with server-side peek/rewind support.
Use cases
- set document body style based on current screen
- fire flux actions declaratively from component props
- manage global side effects from nested components
- collect props across the whole react tree
- handle side effects differently on server and client
When to choose
- you need a global side effect driven by props from multiple nested components
- you want innermost-nested props to win when merging state
- you need server-side access to reduced state via peek and rewind
When to avoid
- you only need side effects from a single component, where componentDidUpdate suffices
- you use a modern state management or document head manager instead
- the project is unmaintained and you need active support for latest React versions
Facets
library · maturity maintenance
state-management middleware frontend web-development cross-platform react higher-order-component side-effects server-side-rendering nodejs web-server
2 sources
- readme: https://github.com/gaearon/react-side-effect · fetched 2026-08-28 · 892d2e1872b3
- registry_npm: https://registry.npmjs.org/react-side-effect · fetched 2026-08-29 · d61c3b95895e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gaearon/react-side-effect | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="gaearon/react-side-effect")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem