|
a |
|
b/src/index.tsx |
|
|
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( |
|
|
8 |
document.getElementById('root') as HTMLElement |
|
|
9 |
); |
|
|
10 |
root.render( |
|
|
11 |
<React.StrictMode> |
|
|
12 |
<App /> |
|
|
13 |
</React.StrictMode> |
|
|
14 |
); |
|
|
15 |
|
|
|
16 |
// If you want to start measuring performance in your app, pass a function |
|
|
17 |
// to log results (for example: reportWebVitals(console.log)) |
|
|
18 |
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals |
|
|
19 |
reportWebVitals(); |