我必须在 React JS 中渲染 html 对象数组 谁能指导我如何使用 renderHTML 函数。对象的输出是这样的:“
const items = this.state.Data.map(item => (
<div key={item._id}>{renderHTML("{item.albComEn}")}</div>
another variation i tried
const items = this.state.Data.map(item => (
<div key={item._id}>{renderHTML("item.albComEn")}</div>
));
输出我得到 => "item.albComEn" 或 {item.albComEn}