Home > Net >  How to disable Strict Mode in React 18?
How to disable Strict Mode in React 18?

Time:12-30

Simply as the title suggests, How to disable Strict Mode in React 18?

  • using React 18 with create-react-app.

CodePudding user response:

Look for this code in index.js and remove the outer element:

  <React.StrictMode>
    <App />
  </React.StrictMode>

https://reactjs.org/docs/strict-mode.html

  • Related