mirror of
https://github.com/PlayEdu/backend
synced 2025-07-21 02:59:33 +08:00
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
import { Suspense } from "react";
|
|
import styles from "./App.module.less";
|
|
import { useRoutes } from "react-router-dom";
|
|
import routes from "./routes";
|
|
import LoadingPage from "./pages/loading";
|
|
|
|
function App() {
|
|
const Views = () => useRoutes(routes);
|
|
|
|
return (
|
|
<Suspense fallback={<LoadingPage />}>
|
|
<div className={styles.App}>
|
|
<Views />
|
|
</div>
|
|
</Suspense>
|
|
);
|
|
}
|
|
|
|
export default App;
|