2021-12-11 20:35:02 +08:00
|
|
|
/// <reference types="vite/client" />
|
2022-03-30 12:36:39 +08:00
|
|
|
/// <reference types="vite-plugin-svgr/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-12 23:07:45 +08:00
|
|
|
import "./services/i18n";
|
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")
|
|
|
|
);
|