← Back to examples
React · @bannerflex/react

Exit intent & last chance

Show a final offer or reminder when the user is about to leave. Combine with displayOnDelay={false} and trigger from a ref on route change or visibility.

Try it

Live demo — click the button to open the popup.

Code

Copy this code into your React or Next.js app. You'll need a Banner ID and Campaign ID from the dashboard.

import { BannerFlexProvider, BannerFlexPopup } from '@bannerflex/react';

function App() {
  return (
    <BannerFlexProvider baseUrl="https://www.bannerflex.app">
      {/* ...popup code template... */}
    </BannerFlexProvider>
  );
}
Loading code…

Subscribers can copy code from the dashboard and keep all templates in sync with new updates. View pricing.