Skip to content

Commit b6ed299

Browse files
committed
Update README.md
1 parent 5ecef33 commit b6ed299

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

packages/scan/README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ Add the script tag to your `app/layout`:
8787

8888
```jsx
8989
// app/layout.jsx
90-
export default function RootLayout({
91-
children,
92-
}) {
90+
export default function RootLayout({ children }) {
9391
return (
9492
<html lang="en">
9593
<head>
@@ -98,7 +96,7 @@ export default function RootLayout({
9896
</head>
9997
<body>{children}</body>
10098
</html>
101-
)
99+
);
102100
}
103101
```
104102

@@ -153,22 +151,14 @@ Add the script tag to your `app/root`:
153151

154152
```jsx
155153
// app/root.jsx
156-
import {
157-
Links,
158-
Meta,
159-
Outlet,
160-
Scripts,
161-
} from "@remix-run/react";
154+
import { Links, Meta, Outlet, Scripts } from "@remix-run/react";
162155

163156
export default function App() {
164157
return (
165158
<html>
166159
<head>
167160
<script src="https://unpkg.com/react-scan/dist/auto.global.js" />
168-
<link
169-
rel="icon"
170-
href="data:image/x-icon;base64,AA"
171-
/>
161+
<link rel="icon" href="data:image/x-icon;base64,AA" />
172162
<Meta />
173163
<Links />
174164
</head>
@@ -203,6 +193,7 @@ Add the script tag to your `index.html`:
203193
</body>
204194
</html>
205195
```
196+
206197
</details>
207198

208199
<details>
@@ -313,13 +304,7 @@ You can add it to your existing dev process as well. Here's an example for Next.
313304

314305
### API
315306

316-
### Chrome Extension
317-
318-
### React Native
319-
320-
### API Reference
321-
322-
Then, in your app, import this **BEFORE** `react`, ideally in your entrypoint file. This must run in a client context (e.g. not in a server component):
307+
In your app, import this **BEFORE** `react`, ideally in your entrypoint file. This must run in a client context (e.g. not in a server component):
323308

324309
```js
325310
import { scan } from "react-scan"; // import this BEFORE react
@@ -333,6 +318,10 @@ if (typeof window !== "undefined") {
333318
}
334319
```
335320

321+
### Chrome Extension
322+
323+
### React Native
324+
336325
> Looking for [React Native](https://github.com/aidenybai/react-scan/pull/23)?
337326
338327
## API Reference

0 commit comments

Comments
 (0)