Update index.tsx
Browse files
index.tsx
CHANGED
|
@@ -4,12 +4,12 @@ import App from './App';
|
|
| 4 |
|
| 5 |
const rootElement = document.getElementById('root');
|
| 6 |
if (!rootElement) {
|
| 7 |
-
|
| 8 |
}
|
| 9 |
|
| 10 |
const root = ReactDOM.createRoot(rootElement);
|
| 11 |
root.render(
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
);
|
|
|
|
| 4 |
|
| 5 |
const rootElement = document.getElementById('root');
|
| 6 |
if (!rootElement) {
|
| 7 |
+
throw new Error("Could not find root element to mount to");
|
| 8 |
}
|
| 9 |
|
| 10 |
const root = ReactDOM.createRoot(rootElement);
|
| 11 |
root.render(
|
| 12 |
+
<React.StrictMode>
|
| 13 |
+
<App />
|
| 14 |
+
</React.StrictMode>
|
| 15 |
);
|