File tree 2 files changed +13
-10
lines changed
examples/create-react-app-typescript
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "@types/node" : " ^18.13.0 " ,
7
- "@types/react-dom" : " ^ 18.0.10 " ,
6
+ "@types/node" : " 20.8.9 " ,
7
+ "@types/react-dom" : " 18.2.14 " ,
8
8
"html-react-parser" : " ../../" ,
9
- "react" : " ^ 18.2.0" ,
10
- "react-dom" : " ^ 18.2.0" ,
9
+ "react" : " 18.2.0" ,
10
+ "react-dom" : " 18.2.0" ,
11
11
"react-scripts" : " 5.0.1" ,
12
- "typescript" : " ^ 4.9.5"
12
+ "typescript" : " 4.9.5"
13
13
},
14
14
"scripts" : {
15
15
"start" : " react-scripts start" ,
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
- import ReactDOM from 'react-dom/client' ;
1
+ import { StrictMode } from 'react' ;
2
+ import { createRoot } from 'react-dom/client' ;
3
+
3
4
import App from './App' ;
4
5
5
- ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
6
- < React . StrictMode >
6
+ const root = createRoot ( document . getElementById ( 'root' ) ! ) ;
7
+
8
+ root . render (
9
+ < StrictMode >
7
10
< App />
8
- </ React . StrictMode >
11
+ </ StrictMode >
9
12
) ;
You can’t perform that action at this time.
0 commit comments