react-hoc-helpers

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

MIT License

Downloads
4.6K
Stars
1
Committers
3

react-hoc-helpers

🧰 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

npm install --save react-hoc-helpers

Via Yarn

yarn add react-hoc-helpers

Helpers

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

License

MIT © Ryan Hefner