Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiskevinwang/with-hooks
https://github.com/thiskevinwang/with-hooks
hoc hooks react recompact recompose
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiskevinwang/with-hooks
- Owner: thiskevinwang
- Created: 2019-07-03T04:21:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T01:42:58.000Z (8 months ago)
- Last Synced: 2024-11-16T02:23:37.867Z (about 2 months ago)
- Topics: hoc, hooks, react, recompact, recompose
- Language: TypeScript
- Size: 355 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# with-hooks
>
[![NPM](https://img.shields.io/npm/v/with-hooks.svg)](https://www.npmjs.com/package/with-hooks) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
## Install
```bash
npm install --save thiskevinwang/with-hooks#v
```## Usage
```tsx
import MyComponent, { withState } from "with-hooks"const Example = () => {
return
}const ExampleWithState = withState("foo", "setFoo", "bar")(Example)
```## License
MIT © [thiskevinwang](https://github.com/thiskevinwang)