react报错:Warning: Each child in a list should have a unique “key“ prop.

我是万万没想到的,使用Popconfirm不添加key属性也会报错:

@react-refresh:160Warning: Each child in a list should have a unique "key" prop. Check the render method of `Cell`. Seehttps://reactjs.org/link/warning-keys for more information. athttp://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:33866:34 at Cell3 (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:37961:25) athttp://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:38077:22 at tr at BodyRow (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:38316:25) at tbody at Provider3 (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:37860:22) at Body (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:38520:19) at table at div at div athttp://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:39317:23 at div at Table (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:39327:25) at div at div at Spin2 (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:32044:25) at SpinFC2 (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:32089:34) at div at InternalTable (http://localhost:5173/node_modules/.vite/deps/chunk-2Q4JEYIA.js?v=2824dff9:43767:34) at div at div at LicenseList (http://localhost:5173/src/pages/StoreRun/serve/list/index.tsx?t=1714118344716:36:22) at InnerLoadable2 (http://localhost:5173/node_modules/.vite/deps/@loadable_component.js?v=2824dff9:155:34) at LoadableWithChunkExtractor2 at Loadable

给Popconfirm添加key属性后就好了.......

害我找了好久才找到这种神奇的bug

相关推荐
渣波6 分钟前
TS 必考题深度解析:type 与 interface 的终极对决
前端·javascript
必须会一定会2 小时前
用纯 HTML/JS 做一个 AI 需求澄清器:把模糊想法转换成可执行任务书
开发语言·前端·javascript·人工智能·html·ai编程
小帅不太帅2 小时前
1.5M 参数的 OCR 模型,我把它跑进了浏览器
前端·javascript·ai编程
avi911115 小时前
[AI教做人]AI平台做2项目;一个3D模型展示,另一个框架多人
javascript·人工智能·ai·3d模型·3d引擎·顶点和法线
kyriewen15 小时前
我用Claude Code两天干完了团队两周的排期——周报发出去那一刻我就后悔了
前端·javascript·ai编程
用户9385156350716 小时前
手写一个 LLM Harness 框架:用工程化手段把大模型幻觉踩在脚下
javascript·人工智能·后端
油丶酸萝卜别吃16 小时前
jquery-ajax.js 说明文档
前端·javascript·jquery
windliang16 小时前
Claude Code 源码分析(九):子 Agent 如何分叉、继续与回到父会话
前端·javascript·面试
柒和远方17 小时前
V063: TS 面试必考:interface 与 type 的四大差异,与 LLM Harness 的自动化择优
前端·javascript
半个落月17 小时前
React useRef 详解:DOM 引用、持久化值与 Worker 实例
前端·react.js