mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
clipper(web): move to react 18
This commit is contained in:
committed by
Abdullah Atta
parent
d88d07a2b0
commit
529e2a4dfd
@@ -23,19 +23,17 @@ import "../assets/64x64.png";
|
||||
import "../assets/128x128.png";
|
||||
import "../assets/256x256.png";
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { App } from "./app";
|
||||
import "./index.css";
|
||||
|
||||
declare let module: NodeModule & {
|
||||
hot?: { accept: () => void };
|
||||
};
|
||||
|
||||
ReactDOM.render(
|
||||
const root = createRoot(document.getElementById("root")!);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root")
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
if (module.hot) module.hot.accept();
|
||||
|
||||
Reference in New Issue
Block a user