Skip to content

Commit b5a6b5f

Browse files
committed
Upgrade React, -DOM and -scripts
Also the phone number input, as something broke otherwise.
1 parent 97eeabc commit b5a6b5f

File tree

3 files changed

+2898
-5482
lines changed

3 files changed

+2898
-5482
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"dependencies": {
66
"axios": "^0.18.0",
77
"moment": "^2.23.0",
8-
"react": "^16.9.0",
9-
"react-dom": "^16.7.0",
8+
"react": "^18.2.0",
9+
"react-dom": "^18.2.0",
1010
"react-ga": "^2.5.7",
11-
"react-phone-number-input": "^2.3.21",
11+
"react-phone-number-input": "^3.2.11",
1212
"react-redux": "^6.0.0",
1313
"react-router-dom": "^5.0.1",
14-
"react-scripts": "4.0.3",
14+
"react-scripts": "5.0.1",
1515
"reactstrap": "^8.0.1",
1616
"redux": "^4.0.4",
1717
"redux-thunk": "^2.3.0"

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react'
2-
import ReactDOM from 'react-dom'
3-
import * as Tracking from './Tracking/index'
2+
import { createRoot } from 'react-dom/client'
3+
44
import App from './App'
5+
import * as Tracking from './Tracking/index'
56

67
// Google Analytics
78
Tracking.initialise()
89

9-
ReactDOM.render(<App />, document.getElementById('root'))
10+
createRoot(document.getElementById('root')).render(<App />)

0 commit comments

Comments
 (0)