Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 534 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 534 Bytes

@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