DEV Community

Discussion on: React lists without .map

Collapse
 
vladislavmurashchenko profile image
VladislavMurashchenko

In my opinion, first is easier to read because of not so many abstractions. I'd prefer to create extra abstractions only when implementation becomes big. Then it becomes simpler to understand which parts of code are worth separate abstractions and which are not.

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Agreed, when it's small, totally. I see them bigger than the surrounding component, then I think it should be separated.