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