DEV Community

Discussion on: React lists without .map

 
miketalbot profile image
Mike Talbot ⭐

I mean, you would have the actual function in a utilities file and it's only a few lines of code. It works fine in TS. Here's an example of Repeat written that way.