Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

with-hooks

NPM JavaScript Style Guide

Install

npm install --save thiskevinwang/with-hooks#v<x.x.x>

Usage

import MyComponent, { withState } from "with-hooks"

const Example = () => {
  return <MyComponent />
}

const ExampleWithState = withState("foo", "setFoo", "bar")(Example)

License

MIT © thiskevinwang