We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 083ebf4 + 8bbd612 commit bdae510Copy full SHA for bdae510
resources/js/app.tsx
@@ -2,6 +2,7 @@ import '../css/app.css';
2
3
import { createInertiaApp } from '@inertiajs/react';
4
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
5
+import { StrictMode } from 'react';
6
import { createRoot } from 'react-dom/client';
7
import { initializeTheme } from './hooks/use-appearance';
8
@@ -17,7 +18,11 @@ createInertiaApp({
17
18
setup({ el, App, props }) {
19
const root = createRoot(el);
20
- root.render(<App {...props} />);
21
+ root.render(
22
+ <StrictMode>
23
+ <App {...props} />
24
+ </StrictMode>,
25
+ );
26
},
27
progress: {
28
color: '#4B5563',
0 commit comments