Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] 디테일 페이지 애니메이션 적용 및 코드 정리 #55

Merged
merged 11 commits into from
May 14, 2024
Merged
225 changes: 6 additions & 219 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { routers } from './routes';
import Layout from './routes/Layout';
import { Suspense } from 'react';
function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Layout />}>
{routers.map(({ path, component }) => (
<Route key={path} path={path} Component={component} />
))}
</Route>
</Routes>
</BrowserRouter>
<Suspense fallback={<>loading</>}>
<BrowserRouter>
<Routes>
<Route path="/" element={<Layout />}>
{routers.map(({ path, component }) => (
<Route key={path} path={path} Component={component} />
))}
</Route>
</Routes>
</BrowserRouter>
</Suspense>
);
}

Expand Down
Loading