Skip to content

Commit

Permalink
chore: strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 13, 2023
1 parent 8599652 commit 70eeb84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ function main() {
const el = document.querySelector("#root");
tinyassert(el);
const root = createRoot(el);
let reactEl = <App />;
if (window.location.hash.split("?")[1]?.includes("strict")) {
reactEl = <React.StrictMode>{reactEl}</React.StrictMode>;
}
root.render(reactEl);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
}

main();

0 comments on commit 70eeb84

Please sign in to comment.