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