I've been wondering how to stop your loop, like break in some programming languages but in React js seems don't working.
something like this:
loop(){
if(){
//meet the if statement end the loop.
break; //not working.
}
}
no actually the loop is a fetch from the server using aPI.
for,while,forEach,map, etc)?