How does the Popover attribute content in react antd loop to write content, code display

You can use the Popover component in Antd to loop rendering content. For example: const list = [{name: 'Zhang San', age: 18}, {name: 'Li Si', age: 21}]; return ( <Popover content={ list.map((item, index) = > { return

{item.name} - {item.age}

}) }> );

Guess you like

Origin blog.csdn.net/weixin_35753431/article/details/129513385