File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 "@testing-library/user-event" : " ^13.2.1" ,
99 "@transmitsecurity/riskid-reactjs-ts" : " *" ,
1010 "@types/jest" : " ^27.0.1" ,
11- "@types/node" : " ^16.7.13 " ,
12- "@types/react" : " 17.0.2 " ,
13- "@types/react-dom" : " 17.0.2 " ,
14- "react" : " 17.0.2 " ,
15- "react-dom" : " 17.0.2 " ,
11+ "@types/node" : " 18.11.19 " ,
12+ "@types/react" : " 18.2.0 " ,
13+ "@types/react-dom" : " 18.2.0 " ,
14+ "react" : " 18.2.0 " ,
15+ "react-dom" : " 18.2.0 " ,
1616 "react-scripts" : " 5.0.1" ,
17- "typescript" : " ^4.4 .2" ,
17+ "typescript" : " 5.8 .2" ,
1818 "web-vitals" : " ^2.1.0"
1919 },
2020 "scripts" : {
4141 " last 1 safari version"
4242 ]
4343 },
44+ "resolutions" : {
45+ "@types/react" : " 18.2.0" ,
46+ "@types/react-dom" : " 18.2.0"
47+ },
4448 "packageManager" : " yarn@3.4.1"
4549}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ReactDOM from 'react-dom' ;
32import './index.css' ;
43import App from './App' ;
54import reportWebVitals from './reportWebVitals' ;
5+ import { createRoot } from 'react-dom/client' ;
66
7- ReactDOM . render (
7+ const root = createRoot ( document . getElementById ( 'root' ) ! ) ;
8+ root . render (
89 < React . StrictMode >
910 < App />
1011 </ React . StrictMode >
11- , document . getElementById ( 'root' ) as HTMLElement ) ;
12+ ) ;
1213
1314// If you want to start measuring performance in your app, pass a function
1415// to log results (for example: reportWebVitals(console.log))
You can’t perform that action at this time.
0 commit comments