Skip to content

Commit 61f5506

Browse files
committed
chore(deps): update react monorepo to v18 (major)
1 parent b634671 commit 61f5506

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/jest-dom": "^5.16.2",
7-
"@testing-library/react": "^12.1.3",
6+
"@testing-library/jest-dom": "^5.16.4",
7+
"@testing-library/react": "^13.0.1",
88
"@testing-library/user-event": "^13.5.0",
9-
"@uiw/react-github-corners": "~1.5.3",
10-
"react": "^17.0.2",
11-
"react-dom": "^17.0.2",
12-
"react-scripts": "5.0.0",
9+
"@uiw/react-github-corners": "~1.5.14",
10+
"react": "^18.0.0",
11+
"react-dom": "^18.0.0",
12+
"react-scripts": "5.0.1",
1313
"web-vitals": "^2.1.4",
14-
"uiw": "^4.13.7"
14+
"uiw": "^4.21.0"
1515
},
1616
"homepage": "https://uiwjs.github.io/uiw-example-create-react-app/",
1717
"repository": {

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import reportWebVitals from './reportWebVitals';
66

7-
ReactDOM.render(
7+
const root = ReactDOM.createRoot(document.getElementById('root'));
8+
root.render(
89
<React.StrictMode>
910
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root')
11+
</React.StrictMode>
1212
);
1313

1414
// If you want to start measuring performance in your app, pass a function

0 commit comments

Comments
 (0)