Loop through nodes in Tree
https://ant.design/components/overview/
const valueMap = {};
function loops(list, parent) {
return (list || []).map(({ children, value }) => {
const node = (valueMap[value] = {
parent,
value
});
node.children = loops(children, node);
return node;
});
}
loops(treeData);
441900cookie-checkAnt Design