I am currently fetching a data table and it has 2 values needs to be mapped. Mapping works just fine but I want to add some customisation to the text.
newDataRows(
dataToBeMapped.map((m) => ({
id: m.id, data:`<span>Bold Me:</span>${m.oldData}`
})));
I was hoping to have <span> portion to be worked but I get [object Object] on my browser. Is there any way to implement HTML in this line?