how to use a for loop in ReactJS to update the state on meeting some condition? loops are not requiring to traverse from every element

后端 未结 0 1839
执笔经年
执笔经年 2020-12-19 00:24

I am new to React and I am having trouble using for loop. forloop increasing the count if the condition is met. Below is my code:

 class CountWalls extends Re         


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