You get a bonus - 1 coin for daily activity. Now you have 1 coin

What is strict mode in React? in REACT

Practice



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

function ExampleApplication() {
  return (
    <div>
      <Header />
      <React.StrictMode>
        <div>
          <ComponentOne />
          <ComponentTwo />
        </div>
      </React.StrictMode>
      <Footer />
    </div>
  )
}
In the example above, the strict mode checks are applied to the <ComponentOne>
and <ComponentTwo>

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone