2021-12-11 20:35:02 +08:00
|
|
|
/// <reference types="vite/client" />
|
2021-12-04 14:31:26 +08:00
|
|
|
import "./assets/styles/index.scss";
|
|
|
|
|
|
|
|
import React from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
2021-12-09 23:28:57 +08:00
|
|
|
import { RecoilRoot } from "recoil";
|
2021-12-08 23:36:34 +08:00
|
|
|
import { BrowserRouter } from "react-router-dom";
|
|
|
|
import Layout from "./pages/_layout";
|
2022-03-06 17:02:29 +08:00
|
|
|
import enhance from "./services/enhance";
|
2022-03-03 01:58:05 +08:00
|
|
|
|
2022-03-06 17:02:29 +08:00
|
|
|
enhance.setup();
|
2021-12-04 14:31:26 +08:00
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<React.StrictMode>
|
2021-12-09 23:28:57 +08:00
|
|
|
<RecoilRoot>
|
2021-12-08 23:36:34 +08:00
|
|
|
<BrowserRouter>
|
|
|
|
<Layout />
|
|
|
|
</BrowserRouter>
|
2021-12-09 23:28:57 +08:00
|
|
|
</RecoilRoot>
|
2021-12-04 14:31:26 +08:00
|
|
|
</React.StrictMode>,
|
|
|
|
document.getElementById("root")
|
|
|
|
);
|