Spaces:
Running
Running
Commit ·
039aee4
1
Parent(s): 81814ba
commit 4
Browse files- src/index.js +14 -22
src/index.js
CHANGED
|
@@ -1,25 +1,17 @@
|
|
| 1 |
-
import React from
|
| 2 |
-
import ReactDOM from
|
| 3 |
-
import
|
| 4 |
-
import
|
| 5 |
-
import
|
| 6 |
|
| 7 |
-
const
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
primary: {
|
| 11 |
-
main: "#90caf9",
|
| 12 |
-
},
|
| 13 |
-
secondary: {
|
| 14 |
-
main: "#f48fb1",
|
| 15 |
-
},
|
| 16 |
-
},
|
| 17 |
-
});
|
| 18 |
-
|
| 19 |
-
ReactDOM.render(
|
| 20 |
-
<ThemeProvider theme={darkTheme}>
|
| 21 |
-
<CssBaseline />
|
| 22 |
<App />
|
| 23 |
-
</
|
| 24 |
-
document.getElementById("root")
|
| 25 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
import ReactDOM from 'react-dom/client';
|
| 3 |
+
import './index.css';
|
| 4 |
+
import App from './App';
|
| 5 |
+
import reportWebVitals from './reportWebVitals';
|
| 6 |
|
| 7 |
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
| 8 |
+
root.render(
|
| 9 |
+
<React.StrictMode>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
<App />
|
| 11 |
+
</React.StrictMode>
|
|
|
|
| 12 |
);
|
| 13 |
+
|
| 14 |
+
// If you want to start measuring performance in your app, pass a function
|
| 15 |
+
// to log results (for example: reportWebVitals(console.log))
|
| 16 |
+
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
| 17 |
+
reportWebVitals();
|