react-ouibounce
v1.3.1
Published
react-ouibounce React component
Downloads
1,125
Maintainers
Readme
react-ouibounce
Wraps the 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
import ReactOuibounce from 'react-ouibounce'
<ReactOuibounce cookieName="test-event" cookieExpire={600} aggressive={true}>
<div className="modal">
Check out this cool offer
</div>
</ReactOuibounce>