strict mode

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