memos/web/src/main.tsx
Steven 40680a5e0f
chore: update memo action buttons style (#80)
chore: update memo action btn style
2022-06-21 08:35:46 +08:00

23 lines
620 B
TypeScript

import { createRoot } from "react-dom/client";
import { Provider } from "react-redux";
import store from "./store";
import { updateStateWithLocation } from "./store/modules/location";
import App from "./App";
import "./helpers/polyfill";
import "./less/global.less";
import "./css/index.css";
const container = document.getElementById("root");
const root = createRoot(container as HTMLElement);
root.render(
<Provider store={store}>
<App />
</Provider>
);
window.onload = () => {
store.dispatch(updateStateWithLocation());
window.onpopstate = () => {
store.dispatch(updateStateWithLocation());
};
};