fix: enable strict mode (#3321)

This commit is contained in:
Alex Yang
2023-07-20 09:59:58 +08:00
committed by GitHub
parent fbd5b36170
commit 27edd7cd93

View File

@@ -1,4 +1,5 @@
import { assertExists } from '@blocksuite/global/utils'; import { assertExists } from '@blocksuite/global/utils';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
async function main() { async function main() {
@@ -7,7 +8,11 @@ async function main() {
const root = document.getElementById('app'); const root = document.getElementById('app');
assertExists(root); assertExists(root);
createRoot(root).render(<App />); createRoot(root).render(
<StrictMode>
<App />
</StrictMode>
);
} }
await main(); await main();