From 27edd7cd930d8196ec41c61d50e36b54780076be Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 20 Jul 2023 09:59:58 +0800 Subject: [PATCH] fix: enable strict mode (#3321) --- apps/core/src/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/core/src/index.tsx b/apps/core/src/index.tsx index 741c8e61fd..32c239e13d 100644 --- a/apps/core/src/index.tsx +++ b/apps/core/src/index.tsx @@ -1,4 +1,5 @@ import { assertExists } from '@blocksuite/global/utils'; +import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; async function main() { @@ -7,7 +8,11 @@ async function main() { const root = document.getElementById('app'); assertExists(root); - createRoot(root).render(); + createRoot(root).render( + + + + ); } await main();