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:
14
package.json
14
package.json
@@ -5,20 +5,18 @@
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
"dev": "bun run --host src/entry.tsx"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/cssinjs": "^2.1.2",
|
||||
"antd": "^6.3.5",
|
||||
"react": "^19.2.5",
|
||||
"react-dom": "^19.2.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^25.6.0",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "latest",
|
||||
"@vitejs/plugin-rsc": "latest",
|
||||
"rsc-html-stream": "^0.0.7",
|
||||
"vite": "^8.0.8"
|
||||
"rsc-html-stream": "^0.0.7"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user