How do you toggle a class on a button when mapping through elements (React)

前端 未结 0 886
野性不改
野性不改 2020-12-31 04:54

I wanna toggle the active class on a single element when clicked on these buttons

  {stuff.map((i) => (
    
相关标签:
回答
  • 消灭零回复
提交回复
热议问题