# react-with-hocs

> A helper to compose React HOCs

Latest version **1.0.0** (published 2021-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-with-hocs
pnpm add react-with-hocs
yarn add react-with-hocs
bun add react-with-hocs
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-04-20 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lebedev.mv |
| Maintainers | megazazik |
| Keywords | react, hocs, typescript |

## Links

- npm: https://www.npmjs.com/package/react-with-hocs
- Repository: https://github.com/megazazik/react-with-hocs
- Issues: https://github.com/megazazik/react-with-hocs/issues
- npm.io page: https://npm.io/package/react-with-hocs

## 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) — 2021-04-20
- 0.1.1 — 2020-02-07
- 0.1.0 — 2020-02-04

## README

# react-with-hocs

[![npm version](https://badge.fury.io/js/react-with-hocs.svg)](https://badge.fury.io/js/react-with-hocs)

A helper to compose React HOCs. Unlike the `compose` function, which is usually used in such cases, the `withHocs` receives the component first. This allows typescript to automatically infer types of HOCs, so you need not specify them manually.

```js
import withHocs from "react-with-hocs";

...

export default withHocs(Component)(
  HOC1,
  HOC2,
  HOC3,
  ...
);
```

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