use-exit-intent3
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

use-exit-intent3

The Exit Intent strategy is a great way to increase your conversion rate. That strategy is commonly used to show a modal/popup when the user is about to leave your website.

Installation

To install the package, use npm:

pnpm add use-exit-intent3

yarn install use-exit-intent3

npm install use-exit-intent3

Usage

import { useExitIntent } from 'use-exit-intent3';

const exiting = useExitIntent();

console.log(exiting ? 'YES' : 'NO');

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-exit-intent3

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10

Package Sidebar

Install

npm i use-exit-intent3

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

10.9 kB

Total Files

15

Last publish

Collaborators

  • dimetrix