# react-underground

> HOC for react modularization

Latest version **1.1.0** (published 2017-10-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-underground
pnpm add react-underground
yarn add react-underground
bun add react-underground
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-10-09 |
| First published | 2016-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nik frank |
| Maintainers | nikfrank |
| Keywords | react, HOC, modularization |

## Links

- npm: https://www.npmjs.com/package/react-underground
- Repository: https://github.com/nikfrank/react-underground
- Homepage: https://github.com/nikfrank/react-underground#readme
- Issues: https://github.com/nikfrank/react-underground/issues
- npm.io page: https://npm.io/package/react-underground

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-10-09
- 1.0.1 — 2017-10-08
- 1.0.0 — 2017-10-08
- 0.0.3 — 2016-11-03
- 0.0.1 — 2016-08-29

## README

this is a project about modularizing all state transition code to the component

given such, all impure / async / network behaviour can me modularized and composabilized to be triggered by actions at will.

there are four things a component can have


action

object with .type or .async


reducer

(state, action)=> nuState


decay

(state)=> shouldDecay  // predicate
actionOnDecay


name

unique name for lexical scope in application





the HOC here is meant to facade the redux workflow without redux, and to provide the concept of state decay modes.


state decays are triggered from componentWillReceiveProps

only when the predicate changes from false to true will the decayAction be triggered

it is conceivable that a series of downstream sync actions could be triggered together (without rendering)

---
_Source: https://npm.io/package/react-underground · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
