Skip to content

The open alternative to Salesforce, designed for AI.

feature: put react app in strict mode

Sammy Teilletc3da5fa5f44b
diff --git a/front/src/index.tsx b/front/src/index.tsx
index ec84e70d6d7..b575491824f 100644
--- a/front/src/index.tsx
+++ b/front/src/index.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
@@ -14,7 +14,9 @@ const root = ReactDOM.createRoot(
root.render(
<ApolloProvider client={apiClient}>
<BrowserRouter>
- <App />
+ <StrictMode>
+ <App />
+ </StrictMode>
</BrowserRouter>
</ApolloProvider>,
);