Skip to content

Commit 0fb8703

Browse files
committed
fix: use strict mode for demo app
1 parent 13c9c18 commit 0fb8703

File tree

2 files changed

+23
-1457
lines changed

2 files changed

+23
-1457
lines changed

examples/vite/src/main.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import { StrictMode } from 'react';
12
import ReactDOM from 'react-dom/client';
23
import App from './App.tsx';
34
import './index.scss';
45

5-
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
6+
ReactDOM.createRoot(document.getElementById('root')!).render(
7+
<StrictMode>
8+
<App />
9+
</StrictMode>,
10+
);

0 commit comments

Comments
 (0)