# @dolsem/extract-hoc

> A Babel plugin that enables react-hot-loader to work on HoCs.

Latest version **0.0.4-2** (published 2020-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dolsem/extract-hoc
pnpm add @dolsem/extract-hoc
yarn add @dolsem/extract-hoc
bun add @dolsem/extract-hoc
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4-2 |
| Published | 2020-11-17 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Quang-Buu Le |
| Maintainers | dolsem |
| Keywords | react, react-hot-loader, HoC |

## Links

- npm: https://www.npmjs.com/package/@dolsem/extract-hoc
- Repository: https://github.com/quangbuule/extract-hoc
- Homepage: https://github.com/quangbuule/extract-hoc#readme
- Issues: https://github.com/quangbuule/extract-hoc/issues
- npm.io page: https://npm.io/package/@dolsem/extract-hoc

## 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

- 0.0.4-2 (latest) — 2020-11-17
- 0.0.4 — 2020-11-17

## README

# Extract HoC
A Babel plugin that enables react-hot-loader to work on HoCs.

## Why this plugin needs to exist
react-hot-loader won't work if you put the component as an argument in functions (to create a higher order component).

See more at this issue: https://github.com/gaearon/react-hot-loader/issues/650

## Installation
```
$ npm install extract-hoc
```

In the `.babelrc`, add `extract-hoc/babel` before the `react-hot-loader/babel`:
```json
{
  "plugins": [
    "extract-hoc/babel",
    "react-hot-loader/babel"
  ]
}
```

## License
MIT

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