You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation/vite.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,18 @@ scan({
34
34
});
35
35
```
36
36
37
+
Or if you want react-scan to run in production
38
+
39
+
```jsx
40
+
// src/index
41
+
import { scan } from"react-scan/all-environments"; // must be imported before React and React DOM
42
+
importReactfrom"react";
43
+
44
+
scan({
45
+
enabled:true,
46
+
});
47
+
```
48
+
37
49
> [!CAUTION]
38
50
> React Scan must be imported before React (and other React renderers like React DOM) in your entire project, as it needs to hijack React DevTools before React gets to access it.
0 commit comments