mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
react 18 changes
This commit is contained in:
parent
8c1500856b
commit
5f04829fd6
1 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
const Promise = require("bluebird");
|
||||
const React = require("react");
|
||||
const ReactDom = require("react-dom");
|
||||
const ReactDom = require("react-dom/client");
|
||||
const Redux = require("react-redux");
|
||||
const { Switch, Route, Redirect } = require("wouter");
|
||||
const { Provider } = require("react-redux");
|
||||
|
@ -174,4 +174,5 @@ function Main() {
|
|||
);
|
||||
}
|
||||
|
||||
ReactDom.render(<React.StrictMode><Main /></React.StrictMode>, document.getElementById("root"));
|
||||
const root = ReactDom.createRoot(document.getElementById("root"));
|
||||
root.render(<React.StrictMode><Main /></React.StrictMode>);
|
Loading…
Reference in a new issue