mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-28 07:34:56 +00:00
20 lines
463 B
TypeScript
20 lines
463 B
TypeScript
import { BrowserRouter } from 'react-router-dom'
|
|
|
|
import AppLayout from '@/components/app/AppLayout'
|
|
import LoadingScreen from '@/components/app/LoadingScreen'
|
|
import { useAppBootstrap } from '@/hooks/use-app-bootstrap'
|
|
|
|
export default function AppBootstrap() {
|
|
const { appReady } = useAppBootstrap({ loadComponentTrees: true })
|
|
|
|
if (!appReady) {
|
|
return <LoadingScreen />
|
|
}
|
|
|
|
return (
|
|
<BrowserRouter>
|
|
<AppLayout />
|
|
</BrowserRouter>
|
|
)
|
|
}
|