# react-micro-lifecycles

> Micro life-cycles form React DOM nodes

Latest version **1.0.0** (published 2018-03-29) · 0 weekly downloads

## Install

```sh
npm install react-micro-lifecycles
pnpm add react-micro-lifecycles
yarn add react-micro-lifecycles
bun add react-micro-lifecycles
```

## 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.0.0 |
| Published | 2018-03-29 |
| First published | 2018-03-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | streamich |
| Keywords | jsx, react, micro, lifecycles |

## Links

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

## 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.0.0 (latest) — 2018-03-29
- 0.0.2 — 2018-03-29
- 0.0.1 — 2018-03-28

## README

# react-micro-lifecycles

Use micro-life-cycles:

```jsx
<div
  $attach={(el, props) => console.log('element attached: ', el, props)}
  $update={(el, props, oldProps) => console.log('element updated: ', el, props, oldProps)}
  $detach={(el, oldProps) => console.log('element detached: ', el, oldProps)}
/>
```

Installation:

```js
require('react-micro-lifecycles/lib/patchStable');
```

or

```js
require('react-micro-lifecycles/lib/patchUnstable');
```

`patchStable` uses React stateful components, `patchUnstable` does not use React stateful components &mdash;
it uses only `ref` prop.

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