Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export default function Document() {
Add the script tag to your `app/layout.tsx`:

```jsx
import Script from "next/script";

export default function RootLayout({
children,
}: {
Expand All @@ -81,7 +83,11 @@ export default function RootLayout({
return (
<html lang="en">
<head>
<script src="https://unpkg.com/react-scan/dist/auto.global.js" async />
<Script
src="https://unpkg.com/react-scan/dist/auto.global.js"
strategy="beforeInteractive"
async
/>
{/* rest of your scripts go under */}
</head>
<body>{children}</body>
Expand Down