refactor: remove unused components and files; update List component to use client-side rendering

- Deleted List.tsx, action.tsx, react.svg, client.tsx, entry.browser.tsx, entry.rsc.tsx, entry.ssr.tsx, error-boundary.tsx, request.tsx, index.css, and root.tsx as they were no longer needed.
- Updated List component in pages/a/index.tsx to use useEffect for client-side behavior.
- Removed pages/b/index.tsx as it was redundant.
- Added new browser-entry.tsx and entry.tsx for client-side and server-side rendering respectively.
- Introduced versioned component in pages/v/a/index.tsx to demonstrate async data fetching.
- Updated tsconfig.json to allow unused local variables.x
This commit is contained in:
2026-04-14 11:10:58 +08:00
parent f22899e424
commit 4cf060136d
23 changed files with 912 additions and 1511 deletions

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"erasableSyntaxOnly": true,
"allowImportingTsExtensions": true,
"noUnusedLocals": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
"skipLibCheck": true,
"verbatimModuleSyntax": true,
@@ -10,8 +10,13 @@
"moduleResolution": "Bundler",
"module": "ESNext",
"target": "ESNext",
"lib": ["ESNext", "DOM"],
"types": ["vite/client", "@vitejs/plugin-rsc/types"],
"lib": [
"ESNext",
"DOM"
],
"types": [
"node",
],
"jsx": "react-jsx"
}
}
}