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

https://github.com/awmleer/with-wrapper

React HOC for wrapper components.
https://github.com/awmleer/with-wrapper

hoc react reactjs wrapper

Last synced: over 1 year ago
JSON representation

React HOC for wrapper components.

Awesome Lists containing this project

README

          

# with-wrapper

[![GitHub](https://img.shields.io/github/license/awmleer/with-wrapper.svg?logo=github)](https://github.com/awmleer/with-wrapper)
[![npm version](https://img.shields.io/npm/v/with-wrapper.svg?logo=npm)](https://www.npmjs.com/package/with-wrapper)
[![npm downloads](https://img.shields.io/npm/dw/with-wrapper.svg?logo=npm)](https://www.npmjs.com/package/with-wrapper)
![React](https://img.shields.io/npm/dependency-version/with-wrapper/peer/react?logo=react)

React HOC for wrapper components.

## Usage

```jsx
import {withWrapper} from 'with-wrapper'

export const App = withWrapper((element, props) => (


{element}

))((props) => {
return (


This is App.


)
})
```

The above component will be rendered as:

```html



This is App.



```