组件是动态的呗?就正常写 JSX 就好了: const ActivityComp = compList[activityIndex]; return ( ); 只要别 `()` 这么写就行,JSX 里 Element 不能是一个表达式。
阅读量:1
点赞量:0