Skip to content

Commit 2bcacc5

Browse files
committed
fix readme
1 parent e538a2f commit 2bcacc5

File tree

3 files changed

+3890
-3120
lines changed

3 files changed

+3890
-3120
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ And voilà! You're ready to go.
5959

6060
## Framework-specific Installation
6161

62-
### Next.js (Pages Router)
62+
<details>
63+
<summary>### Next.js (Pages Router)</summary>
6364

6465
Add the script tag to your `pages/_document.tsx`:
6566

@@ -83,7 +84,10 @@ export default function Document() {
8384
}
8485
```
8586

86-
### Next.js (App Router)
87+
</details>
88+
89+
<details>
90+
<summary>### Next.js (App Router)</summary>
8791

8892
Add the script tag to your `app/layout.tsx`:
8993

@@ -105,7 +109,10 @@ export default function RootLayout({
105109
}
106110
```
107111

108-
### Vite / Create React App / Remix
112+
</details>
113+
114+
<details>
115+
<summary>### Vite / Create React App / Remix</summary>
109116

110117
Add the script tag to your `index.html`:
111118

@@ -123,6 +130,8 @@ Add the script tag to your `index.html`:
123130
</html>
124131
```
125132

133+
</details>
134+
126135
## Why React Scan?
127136

128137
React can be tricky to optimize.

0 commit comments

Comments
 (0)