# decorate-component-with-props

> Utility function for decorating a React component with any props

Latest version **1.2.1** (published 2022-06-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install decorate-component-with-props
pnpm add decorate-component-with-props
yarn add decorate-component-with-props
bun add decorate-component-with-props
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2022-06-09 |
| First published | 2016-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Julian Krispel-Samsel |
| Maintainers | nikgraf, juliankrispel |

## Links

- npm: https://www.npmjs.com/package/decorate-component-with-props
- Repository: https://github.com/belle-ui/decorateComponentWithProps
- Homepage: https://github.com/belle-ui/decorateComponentWithProps#readme
- Issues: https://github.com/belle-ui/decorateComponentWithProps/issues
- npm.io page: https://npm.io/package/decorate-component-with-props

## Recent versions

- 1.2.1 (latest) — 2022-06-09
- 1.1.0 — 2017-10-18
- 1.0.2 — 2016-03-22
- 1.0.1 — 2016-03-21
- 1.0.0 — 2016-03-21

## README

A simple function to decorate your component with miscellaneous props:

Example:

```js
import decorateComponentWithProps from 'decorate-component-with-props';

const props = {
  wine: 'red',
  beer: 'ipa',
  food: 'spaghetti',
};

MyDecoratedComponent = decorateComponentWithProps(MyComponent, props);

// MyDecoratedComponent will now be decorated with these props
```

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