Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thiskevinwang/with-hooks


https://github.com/thiskevinwang/with-hooks

hoc hooks react recompact recompose

Last synced: 16 days ago
JSON representation

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)