diff options
| author | shu <nvcsadjkojf@outlook.com> | 2026-09-07 15:48:36 +0800 |
|---|---|---|
| committer | shu <nvcsadjkojf@outlook.com> | 2026-09-07 15:48:36 +0800 |
| commit | 481402e09fe760634b826b09e302e2e1bfec88b1 (patch) | |
| tree | 9b55025bfcd6acd2c5d795f057de27028b422603 /src/router.tsx | |
feat: initialize React Spectrum template with layouts and showcases
Diffstat (limited to 'src/router.tsx')
| -rw-r--r-- | src/router.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/router.tsx b/src/router.tsx new file mode 100644 index 0000000..8128f45 --- /dev/null +++ b/src/router.tsx @@ -0,0 +1,11 @@ +import { createBrowserRouter } from 'react-router' +import App from './App' +import { pageRoutes } from './route-config' + +export const router = createBrowserRouter([ + { + path: '/', + Component: App, + children: pageRoutes, + }, +]) |
