mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-17 06:37:01 +08:00
18 lines
348 B
TypeScript
18 lines
348 B
TypeScript
import { useRoutes } from "react-router-dom";
|
|
import routes from "./routes";
|
|
import "./App.scss";
|
|
import { Suspense } from "react";
|
|
import LoadingPage from "./pages/loading";
|
|
|
|
function App() {
|
|
const Views = () => useRoutes(routes);
|
|
|
|
return (
|
|
<Suspense fallback={<LoadingPage />}>
|
|
<Views />
|
|
</Suspense>
|
|
);
|
|
}
|
|
|
|
export default App;
|