Skip to content

Commit

Permalink
deps: Update react to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jan 15, 2025
1 parent 7cac114 commit 327e675
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 83 deletions.
6 changes: 4 additions & 2 deletions app/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react'
import ReactDOM from 'react-dom'
import { createRoot } from 'react-dom/client'

import App from './App'

// Inject React app in DOM
ReactDOM.render(<App />, document.getElementById('app'))
const container = document.getElementById('app')
const root = createRoot(container) // createRoot(container!) if you use TypeScript
root.render(<App />)
160 changes: 82 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"prop-types": "~15.8.1",
"re-reselect": "~4.0.0",
"re-resizable": "^6.10.0",
"react": "~17.0.2",
"react-dom": "~17.0.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-flip-move": "3.0.5",
"react-helmet": "6.1.0",
"react-i18next": "~9.0.1",
Expand Down Expand Up @@ -148,7 +148,7 @@
"mini-css-extract-plugin": "^2.9.1",
"node-sass": "8.0.0",
"prettier": "3.2.5",
"react-test-renderer": "^17.0.2",
"react-test-renderer": "^18.3.1",
"sass-loader": "^16.0.4",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^5.3.10",
Expand Down

0 comments on commit 327e675

Please sign in to comment.