OiO.lk Blog javascript Faced problem with collapsable button on react map() function
javascript

Faced problem with collapsable button on react map() function


i’ve created multiple collapseable div useing map() function. but when i click one item to expand others also expands. same as collapse. any sollution?

i tried this codes but it does not works with me.

[`const handleBlogClick = () => {
if (item.id !== item.id) {
setOpen(!open);

}

};`]



You need to sign in to view this answers

Exit mobile version