What is strict mode in React?

Posted by Prem Tiwari | Updated on

What is strict mode in React?

React.StrictMode is a useful component for highlighting potential problems in an application. Just like , does not render any extra DOM elements. It activates additional checks and warnings for its descendants. These checks apply for development mode only.

In the example above, the strict mode checks apply to and components only.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers