# React and Next.js Install

Last updated: 2026-06-14

If the site already has a working contact form, add the unique localbot email address as another form notification recipient first. Use this script only when the owner wants the full floating localbot form.

Load the script once from the app root or root layout so localbot runs on every public page.

```tsx
import Script from 'next/script';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script
          src="https://www.localbot.io/api/widget/YOUR_WIDGET_ID"
          strategy="lazyOnload"
        />
      </body>
    </html>
  );
}
```

No localbot API key is needed in the website project.
