Skip to content

only-much-louder/react-ouibounce

Repository files navigation

react-ouibounce

Travis npm package Coveralls

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>

About

Displays a dialog/modal to users when leaving your site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published