You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web/src/App.tsx

11 lines
243 B
TypeScript

4 years ago
import { appRouterSwitch } from "./routers";
import { useAppSelector } from "./store";
4 years ago
function App() {
const pathname = useAppSelector((state) => state.location.pathname);
4 years ago
return <>{appRouterSwitch(pathname)}</>;
}
export default App;