@ds-pack/tapable
v0.1.0
Published
A React Hook for creating accessible clickable primatives!
Downloads
1
Readme
@ds-pack/tapable
A React Hook for creating accessible clickable primatives!
Installation:
yarn add @ds-pack/tapable
Usage:
import { useTapable } from '@ds-pack/tapable'
let Tapable = forwardRef(function Tapable(props, ref) {
let baggage = useTapable(props, ref)
return <div {...baggage} />
})
render(<Tapable onClick={addLike}>Like!</Tapable>)
Contributing:
build
yarn turbo run build
test
yarn turbo run test
Tools:
- Typescript
- Babel
- Jest