Skip to content

Commit

Permalink
Revert "migrate to createRoot #717"
Browse files Browse the repository at this point in the history
This reverts commit 6c89468.
  • Loading branch information
jesperpedersen committed Oct 4, 2023
1 parent 6c89468 commit 585b26b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
9 changes: 4 additions & 5 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,6 +12,7 @@
"@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 @@ -71,7 +72,6 @@
]
},
"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: 2 additions & 8 deletions webapp/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import ReactDOM from "react-dom/client"
import ReactDOM from "react-dom"

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

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

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

// 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 585b26b

Please sign in to comment.