Tsallaka zuwa abun ciki
Justice Tech School

StrictMode

StrictMode double runs some code in development to reveal bugs.

Example
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
createRoot(document.getElementById("root")).render(
  <StrictMode><App /></StrictMode>
);

Exercise

Wrapper.

<><App /></StrictMode>

Quiz Test

When does StrictMode double run?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.