File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import './styles.css';
55
66scan ( {
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) => {
2525export 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 >
You can’t perform that action at this time.
0 commit comments