Skip to content

Commit 22e2909

Browse files
committed
remove lag source
1 parent b4a36e7 commit 22e2909

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

test/src/index.jsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import './styles.css';
55

66
scan({
77
enabled: true,
8-
log: true,
9-
clearLog: true,
8+
// log: true,
9+
// clearLog: true,
1010
production: true,
1111
});
1212

@@ -25,14 +25,20 @@ const copyToClipboard = (text) => {
2525
export const App = () => {
2626
const [tasks, setTasks] = useState([]);
2727

28+
React.useMemo(() => {
29+
console.log('App rerender');
30+
}, []);
31+
2832
return (
2933
<div className="app-container">
3034
<div className="main-content">
3135
<nav className="navbar">
3236
<a href="/" className="navbar-brand">
3337
<img src="/logo.svg" alt="react-scan-logo" width="30" height="30" />
3438
<h3>
35-
<strong style={{ fontFamily: 'Geist Mono, monospace' }}>React Scan</strong>
39+
<strong style={{ fontFamily: 'Geist Mono, monospace' }}>
40+
React Scan
41+
</strong>
3642
</h3>
3743
</a>
3844
<div className="navbar-links">
@@ -86,7 +92,11 @@ export const App = () => {
8692
</code>
8793
<button
8894
className="copy-button"
89-
onClick={() => copyToClipboard('<script src="https://unpkg.com/react-scan/dist/auto.global.js"></script>')}
95+
onClick={() =>
96+
copyToClipboard(
97+
'<script src="https://unpkg.com/react-scan/dist/auto.global.js"></script>',
98+
)
99+
}
90100
>
91101
Copy
92102
</button>

0 commit comments

Comments
 (0)