Skip to content

Commit 043ee4c

Browse files
committed
Remove redundant setInterval from index.js
1 parent 4355d39 commit 043ee4c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

frontend/src/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ import App from './App';
44
import reportWebVitals from './reportWebVitals';
55

66
const root = ReactDOM.createRoot(document.getElementById('root'));
7-
function tick() {
8-
root.render(
9-
<React.StrictMode>
10-
<App />
11-
</React.StrictMode>
12-
);
13-
}
14-
15-
setInterval(tick, 1000)
7+
root.render(
8+
<React.StrictMode>
9+
<App />
10+
</React.StrictMode>
11+
);
1612

1713
// If you want to start measuring performance in your app, pass a function
1814
// to log results (for example: reportWebVitals(console.log))

0 commit comments

Comments
 (0)