const newState = obj.map(item => ({...item, someValue: 0}));
setObj(newState);
top: 100%;
top: -93px;
function testFn(node) {
Array.from(node.children).forEach((child) => {
if (child.children[0]?.nodeName === 'LI') {
testFn(child);
child.replaceWith(...child.childNodes);
return;
}
if (child.nodeName === 'LI') {
child.innerHTML = child.textContent;
return;
}
child.replaceWith(child.textContent);
});
}