mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Fix warning for the use of ReactDOM.render
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import React from "react"
|
||||
import { render } from "react-dom"
|
||||
import ReactDOM from "react-dom/client"
|
||||
import { App } from "./components/App"
|
||||
|
||||
render(
|
||||
ReactDOM.createRoot(document.getElementById("dashboard") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("dashboard")
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user