I\'m mapping data from the api response and rendering multiple divs out of it. Along with that I\'m assigning a unique id from the response to the id attribute of each div l
if you are already using ES6
I would change the code a bit, so it will easier to understand and work with no special glitches with events
target and attributes
lists.map(list => {
return (
Hello World
Foo Bar
as you can see here, I just call the method with the list id and I'm done