React hook to detect outside click or outside touch events.
You can install the package using npm, yarn, or pnpm.
pnpm add use-click-away3
yarn install use-click-away3
npm install use-click-away3import { ProDate } from "use-click-away3";Bundle your TypeScript library with no config, powered by esbuild.
- install dependencies
# pnpm
$ pnpm install
# yarn
$ yarn install
# npm
$ npm install
- Add your code to
src - Add export statement to
src/index.ts - Test build command to build
src. Once the command works properly, you will seedistfolder.
# pnpm
$ pnpm run build
# yarn
$ yarn run build
# npm
$ npm run build- Publish your package
$ npm publish