I have below code
const DisplayData = filteredCardMemberData.map(
(info) => (
// eslint-disable-next-line react/jsx-key -- disabling eslint rule
<div> {info.productDescription}</div>
)
);
I gives the below output
Apple
Mango
I want to convert the output as
Apple, Mango
Also, I want "Apple, Mango" to be one string, all the data should be concatenated to only string and separated by comma(,). Can you help me.