Skip to content

ds-pack/tapable

Repository files navigation

@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

About

An accessible tapable primitive for react-dom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published