October 21, 2024
Chicago 12, Melborne City, USA
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

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video