File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
examples/create-react-app-typescript Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "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 " ,
88 "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" ,
1111 "react-scripts" : " 5.0.1" ,
12- "typescript" : " ^ 4.9.5"
12+ "typescript" : " 4.9.5"
1313 },
1414 "scripts" : {
1515 "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+
34import App from './App' ;
45
5- ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
6- < React . StrictMode >
6+ const root = createRoot ( document . getElementById ( 'root' ) ! ) ;
7+
8+ root . render (
9+ < StrictMode >
710 < App />
8- </ React . StrictMode >
11+ </ StrictMode >
912) ;
You can’t perform that action at this time.
0 commit comments