1.0.1 • Published 9 months ago

use-click-away3 v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

use-click-away3

React hook to detect outside click or outside touch events.

Installation

You can install the package using npm, yarn, or pnpm.

pnpm add use-click-away3

yarn install use-click-away3

npm install use-click-away3

Usage

import { ProDate } from "use-click-away3";

tsup

Bundle your TypeScript library with no config, powered by esbuild.

https://tsup.egoist.dev/

How to use this

  1. install dependencies
# pnpm
$ pnpm install

# yarn
$ yarn install

# npm
$ npm install
  1. Add your code to src
  2. Add export statement to src/index.ts
  3. Test build command to build src. Once the command works properly, you will see dist folder.
# pnpm
$ pnpm run build

# yarn
$ yarn run build

# npm
$ npm run build
  1. Publish your package
$ npm publish

test package

https://www.npmjs.com/package/use-click-away3

1.0.1

9 months ago