Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
64
rated 0 times [  67] [ 3]  / answers: 1 / hits: 6925  / 1 Year ago, thu, december 29, 2022, 12:00:00

Simply, how can I disable Strict Mode in React 18? I'm using React 18 with create-react-app.


More From » reactjs

 Answers
2

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


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


Note:


Strict mode checks are run in development mode only; they do not
impact the production build.



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


[#3] Sunday, September 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suzanne

Total Points: 425
Total Questions: 87
Total Answers: 109

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
;