What is strict mode in React.js?

Answer

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

import React from 'react'

function Application() {
return (
<div>
<Header />
<React.StrictMode>
<div>
<ComponentOne />
<ComponentTwo />
</div>
</React.StrictMode>
<Header />
</div>
)
}

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---