@ds-pack/tapable
v0.1.0
Published
A React Hook for creating accessible clickable primatives!
Readme
@ds-pack/tapable
A React Hook for creating accessible clickable primatives!
Installation:
yarn add @ds-pack/tapableUsage:
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 buildtest
yarn turbo run testTools:
- Typescript
- Babel
- Jest
