DEV Community

Discussion on: React lists without .map

Collapse
globalkonvict profile image
Sarthak Dwivedi

Seriously that's cool, and I see you define function after return of component markup. I might try it work. Let's see what I get from my manager, lol.

Collapse
miketalbot profile image
Mike Talbot Author

Yeah that's a "thing", I always do this because I like the main purpose - the body in other words - of a routines to be first. Then utilities it uses next. Doesn't work in TS with linting (because TS hates me!)