Posts by Ray • 1 point
2 posts
-
0
votes2
answers54
viewsA: Conditional If inside map() with Function
I was able to solve the problem, thanks to @Jason’s example and a little observation in the code itself. I realized there was a return just above, then simply "repeated" like this { if (res.display)…
-
-2
votes2
answers54
viewsQ: Conditional If inside map() with Function
Hello! I have a line of code like this: if (searchQuery.length != 0) { return ( <Row hidden> {searchQuery.map((res) => ( In this snippet of code, I’m trying to add a if shortly after the…