memos/web/src/main.tsx

20 lines
556 B
TypeScript
Raw Normal View History

2021-12-08 18:43:52 +03:00
import React from "react";
2022-04-01 09:38:30 +03:00
import { createRoot } from "react-dom/client";
2021-12-08 18:43:52 +03:00
import Provider from "./labs/Provider";
import appContext from "./stores/appContext";
import appStore from "./stores/appStore";
import App from "./App";
import "./helpers/polyfill";
import "./less/global.less";
import "./css/index.css";
2021-12-08 18:43:52 +03:00
2022-04-01 09:38:30 +03:00
const container = document.getElementById("root");
const root = createRoot(container as HTMLElement);
root.render(
2021-12-08 18:43:52 +03:00
<React.StrictMode>
<Provider store={appStore} context={appContext}>
<App />
</Provider>
2022-04-01 09:38:30 +03:00
</React.StrictMode>
2021-12-08 18:43:52 +03:00
);