memos/web/src/App.tsx
2022-03-11 05:07:04 +08:00

14 lines
311 B
TypeScript

import { useContext } from "react";
import appContext from "./stores/appContext";
import { appRouterSwitch } from "./routers";
import "./less/app.less";
function App() {
const {
locationState: { pathname },
} = useContext(appContext);
return <>{appRouterSwitch(pathname)}</>;
}
export default App;