Strict Mode

A development-only React wrapper that runs extra checks, such as rendering components twice and running every Effect setup and cleanup an extra time.

In more detail

The doubled calls expose impure rendering, missing cleanup functions and leaked subscriptions early. Strict Mode has no effect on production builds.

Example

<StrictMode><App /></StrictMode>

Related terms

Taught in

References