• contact
  • privacy policy
  • terms and conditions
  • about
Land of code
  • C
  • C++
  • Embedded C
  • HTML
  • JavaScript
  • games
  • canvas
  • php
  • libraries
    • React
  • frameworks
    • phaser
Land of code
  • C
  • C++
  • Embedded C
  • HTML
  • JavaScript
  • games
  • canvas
  • php
  • libraries
    • React
  • frameworks
    • phaser

Home » strict mode

strict mode

by Matthew Stuart

Back to: React

Strict mode can be used to help you check for bugs in your components, during development.

<StrictMode>
  <App />
</StrictMode>

Using StrictMode enables development warnings and behaviours for component trees:

import { StrictMode } from 'react';
import {createRoot } from 'react-dom/client';

const root = createRoot(document.getElementById('root
Previous Lesson
useEffect
Lesson 3 within section hooks.
Back to Course
React

Tweets by matthewsworld

Copyright © 2025 - Created by Matthew Stuart

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok