Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanhefner/react-hoc-helpers

🧰 Collection of helpful utilities and helpers for when working with React higher-order components (HOC).
https://github.com/ryanhefner/react-hoc-helpers

Last synced: about 1 month ago
JSON representation

🧰 Collection of helpful utilities and helpers for when working with React higher-order components (HOC).

Awesome Lists containing this project

README

        

# react-hoc-helpers

[![npm](https://img.shields.io/npm/v/react-hoc-helpers?style=flat-square)](https://www.pkgstats.com/pkg:react-hoc-helpers)
[![NPM](https://img.shields.io/npm/l/react-hoc-helpers?style=flat-square)](https://www.pkgstats.com/pkg:react-hoc-helpers)
[![npm](https://img.shields.io/npm/dt/react-hoc-helpers?style=flat-square)](https://www.pkgstats.com/pkg:react-hoc-helpers)
[![Coveralls github](https://img.shields.io/coveralls/github/ryanhefner/react-hoc-helpers?style=flat-square)](https://coveralls.io/github/ryanhefner/react-hoc-helpers)
![CircleCI](https://img.shields.io/circleci/build/github/ryanhefner/react-hoc-helpers?style=flat-square)
![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/ryanhefner/react-hoc-helpers?style=flat-square)

🧰 Collection—well, just one for now—of helpful utilities and helpers for when
working with React higher-order components (HOC).

I kept copying the same file between multiple packages/repos and it just felt
redundant to have to go about exporting and building a file that was just a copy.
Sorry, but one more npm package lives because of my lazyness.

## Install

Via [npm](https://npmjs.com/package/react-hoc-helpers)

```sh
npm install --save react-hoc-helpers
```

Via [Yarn](https://yarn.fyi/react-hoc-helpers)

```sh
yarn add react-hoc-helpers
```

## Helpers

* `getDisplayName(Component): string` - Returns the name of the Comonent being wrapped.

## License

[MIT](LICENSE) © [Ryan Hefner](https://www.ryanhefner.com)