File tree Expand file tree Collapse file tree 4 files changed +450
-105
lines changed Expand file tree Collapse file tree 4 files changed +450
-105
lines changed Original file line number Diff line number Diff line change
1
+ 16.19.1
Original file line number Diff line number Diff line change 12
12
"framer-motion" : " ^2.0.0-beta.52" ,
13
13
"markdown-to-jsx" : " 6.11.0" ,
14
14
"query-string" : " 6.11.1" ,
15
- "react" : " 16.13 .0" ,
15
+ "react" : " 18.2 .0" ,
16
16
"react-content-loader" : " 5.0.2" ,
17
17
"react-copy-to-clipboard" : " 5.0.2" ,
18
18
"react-diff-view" : " 2.4.2" ,
19
- "react-dom" : " 16.13 .0" ,
19
+ "react-dom" : " 18.2 .0" ,
20
20
"react-dom-confetti" : " 0.1.3" ,
21
21
"react-ga" : " 2.7.0" ,
22
22
"react-github-btn" : " 1.1.1" ,
26
26
},
27
27
"devDependencies" : {
28
28
"@emotion/babel-preset-css-prop" : " 10.0.27" ,
29
- "@testing-library/react" : " ^10 .0.3 " ,
29
+ "@testing-library/react" : " ^14 .0.0 " ,
30
30
"customize-cra" : " ^0.9.1" ,
31
31
"customize-cra-react-refresh" : " ^1.0.1" ,
32
32
"eslint" : " 6.8.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import ReactDOM from 'react-dom'
2
+ import { createRoot } from 'react-dom/client '
3
3
import './index.css'
4
4
import App from './App'
5
5
import * as serviceWorker from './serviceWorker'
6
6
7
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) )
7
+ const container = document . getElementById ( 'root' )
8
+ const root = createRoot ( container )
9
+ root . render ( < App /> )
8
10
9
11
// If you want your app to work offline and load faster, you can change
10
12
// unregister() to register() below. Note this comes with some pitfalls.
You can’t perform that action at this time.
0 commit comments