Answer the question
In order to leave comments, you need to log in
How to change one button among button list on click?
Let's say there is an array with 12 objects and they are shown on the page with the following code
<ul>
{arr.map((item, index )=> (
<li key={index} >
<h1>{item.title}</h1>
<button>Click</button>
</li>
)}
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question