React 18

Last Updated: 10/14/2023

Strict Mode

  • StrictMode component is built-in component and doesn't have visual representation. Wraps root component
  • Strict mode helps us catch potential problems such as impure components. Starting from React 18, it is enabled by default.
  • It renders our components twice in development mode to detect any potential side effects
  • The first render is used for detecting and reporting potential issues with the code
  • The second render to update the UI