State not updating on button Click

后端 未结 0 1502
南方客
南方客 2021-01-04 14:49

I am new to react. I have 3 buttons in my components and I am applying a class active based on the selection.(i.e button that is clicked ).

Code is,

im         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题