https://github.com/only-much-louder/react-ouibounce
Displays a dialog/modal to users when leaving your site
https://github.com/only-much-louder/react-ouibounce
javascript jsx react
Last synced: 30 days ago
JSON representation
Displays a dialog/modal to users when leaving your site
- Host: GitHub
- URL: https://github.com/only-much-louder/react-ouibounce
- Owner: only-much-louder
- Created: 2017-02-22T08:29:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T11:09:54.000Z (almost 7 years ago)
- Last Synced: 2025-04-12T06:38:34.169Z (about 1 month ago)
- Topics: javascript, jsx, react
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# react-ouibounce
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]Wraps the [ouibounce](https://github.com/carlsednaoui/ouibounce) library in a React component.
Ouibounce lets you trigger a UI element (such as a modal) when a user is about to leave the page
Usage
```jsximport ReactOuibounce from 'react-ouibounce'
Check out this cool offer
```
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo