File tree Expand file tree Collapse file tree 3 files changed +6356
-8261
lines changed
examples/create-react-app-example Expand file tree Collapse file tree 3 files changed +6356
-8261
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "dependencies" : {
6- "@testing-library/jest-dom" : " ^4.2.4 " ,
7- "@testing-library/react" : " ^9.3.2 " ,
8- "@testing-library/user-event" : " ^7.1.2 " ,
9- "react" : " ^16.13.1 " ,
10- "react-dom" : " ^16.13.1 " ,
11- "react-scripts" : " 3.4 .1" ,
12- "socket.io" : " 4 " ,
13- "socket.io-client" : " 4 "
6+ "@testing-library/jest-dom" : " ^5.16.5 " ,
7+ "@testing-library/react" : " ^14.0.0 " ,
8+ "@testing-library/user-event" : " ^14.4.3 " ,
9+ "react" : " ^18.2.0 " ,
10+ "react-dom" : " ^18.2.0 " ,
11+ "react-scripts" : " ^5.0 .1" ,
12+ "socket.io" : " ^4.6.1 " ,
13+ "socket.io-client" : " ^4.6.1 "
1414 },
1515 "scripts" : {
1616 "start" : " react-scripts start" ,
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ReactDOM from 'react-dom' ;
2+ import { createRoot } from 'react-dom/client ' ;
33import './index.css' ;
44import App from './App' ;
55import * as serviceWorker from './serviceWorker' ;
66
7- ReactDOM . render (
7+ const container = document . getElementById ( 'root' ) ;
8+ const root = createRoot ( container )
9+ root . render (
810 < React . StrictMode >
911 < App />
10- </ React . StrictMode > ,
11- document . getElementById ( 'root' )
12+ </ React . StrictMode >
1213) ;
1314
1415// If you want your app to work offline and load faster, you can change
You can’t perform that action at this time.
0 commit comments