Skip to content

Commit 1782045

Browse files
authored
Wrap docs-app and demo-app in React <StrictMode> (#7497)
1 parent 43ef015 commit 1782045

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/demo-app/src/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ const root = ReactDOM.createRoot(container);
3030
// rely on those styles to take accurate DOM measurements.
3131
await import("./index.scss");
3232
root.render(
33-
<BlueprintProvider>
34-
<Examples />
35-
</BlueprintProvider>,
33+
<React.StrictMode>
34+
<BlueprintProvider>
35+
<Examples />
36+
</BlueprintProvider>
37+
</React.StrictMode>,
3638
);
3739
})();

packages/docs-app/src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ const tagRenderers = {
4646
const container = document.getElementById("blueprint-documentation");
4747
const root = ReactDOM.createRoot(container);
4848
root.render(
49-
<BlueprintDocs defaultPageId="blueprint" docs={docsData} tagRenderers={tagRenderers} useNextVersion={false} />,
49+
<React.StrictMode>
50+
<BlueprintDocs defaultPageId="blueprint" docs={docsData} tagRenderers={tagRenderers} useNextVersion={false} />
51+
</React.StrictMode>,
5052
);

0 commit comments

Comments
 (0)