A React Hook for creating accessible clickable primatives!
yarn add @ds-pack/tapableimport { 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>)yarn turbo run buildyarn turbo run test- Typescript
- Babel
- Jest