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.
- Host: GitHub
- URL: https://github.com/awmleer/with-wrapper
- Owner: awmleer
- License: mit
- Created: 2019-10-29T06:32:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:40:03.000Z (over 3 years ago)
- Last Synced: 2025-02-27T17:46:49.156Z (over 1 year ago)
- Topics: hoc, react, reactjs, wrapper
- Language: JavaScript
- Size: 343 KB
- Stars: 35
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# with-wrapper
[](https://github.com/awmleer/with-wrapper)
[](https://www.npmjs.com/package/with-wrapper)
[](https://www.npmjs.com/package/with-wrapper)

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.
```