Skip to content

React component

In Next.js, load the script once in the root layout:

import Script from 'next/script';
<Script src="https://api.example.com/widget/widget.js"
data-endpoint="https://api.example.com" data-key="pk_…" strategy="afterInteractive" />

Then use window.Helpvane from your components, for example to sign customers in when your auth state changes.