Skip to content

Commit

Permalink
migrate to createRoot #717
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-sharma7 committed Oct 4, 2023
1 parent 9cacc71 commit 6c89468
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
9 changes: 5 additions & 4 deletions webapp/package-lock.json

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

2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@types/luxon": "3.2.0",
"@types/react": "17.0.37",
"@types/react-autosuggest": "10.1.5",
"@types/react-dom": "17.0.11",
"@types/react-redux": "7.1.20",
"@types/react-router-dom": "5.3.3",
"@types/react-table": "7.7.14",
Expand Down Expand Up @@ -72,6 +71,7 @@
]
},
"devDependencies": {
"@types/react-dom": "^18.2.9",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "8.49.0",
Expand Down
10 changes: 8 additions & 2 deletions webapp/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import ReactDOM from "react-dom"
import ReactDOM from "react-dom/client"

import "./index.css"
import App from "./App"
import * as serviceWorker from "./serviceWorker"

import jsonpath from "jsonpath"
import React from "react"

ReactDOM.render(<App />, document.getElementById("root"))
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement)
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
)

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down

0 comments on commit 6c89468

Please sign in to comment.