coryhouse / coryhouse/react-restaurant-scriptpro

Code-split the admin route with Suspense + React.lazy

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-8-resilience
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Use `React.lazy` + `` to code-split the admin route bundle. The Suspense fallback should appear during the chunk load.

## Acceptance criteria
- [ ] Admin route component loaded via `lazy(() => import(...))`
- [ ] `}>` wraps it
- [ ] Network tab shows a separate chunk for admin
- [ ] First-load bundle on `/` is smaller than before

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.