← Back to examples
React · @bannerflex/react

Flash sale & urgency

Drive action with a time-bound offer. Pair with campaign start/end dates in the dashboard so the popup goes live and turns off automatically.

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.