0.1.0 • Published 1 year ago

@ds-pack/tapable v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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
0.1.0

1 year ago