I'm trying to make an Accordion list, and the details of the list I'm going to show it through map. The code is correct but it was not showing the output. Anyone can help me out in this?
I try this method `
{
listOfsuperHeros.map((item) => (
<Accordion.Item key = {item.id}
eventKey = {item.id}>
<Accordion.Header>{item.name}</Accordion.Header>
<Accordion.Body><p> Power: {item.power}</p>
</Accordion.Body>
</Accordion.Item>
))
}
It seems you're using react bootstrap.
Therefore please try the following.