We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874d346 commit c01de6dCopy full SHA for c01de6d
src/index.js
@@ -4,8 +4,10 @@ import App from './components/App';
4
5
const root = ReactDOM.createRoot(document.getElementById('root'));
6
root.render(
7
- <React.StrictMode>
8
- <App />
9
- </React.StrictMode>
+ // turn strict mode off as it causes useEffect to be called twice,
+ // see issue https://github.com/facebook/react/issues/24455
+ // <React.StrictMode>
10
+ <App />
11
+ // </React.StrictMode>
12
);
13
0 commit comments