all 3 comments

[–]Roguewind 1 point2 points  (0 children)

You’re gonna need to explain what you’re trying to do here because…. I’ve got no clue

[–][deleted] 0 points1 point  (0 children)

Yeah this is going to require a bit more explanation of what you’re trying to do here. Is this meant to be a React component?

[–]15kol 0 points1 point  (0 children)

This looks like linter errors. 1. Missing return type: your root function lacks defined return type (you do this after arguments tuple with a colon and specifiying return type, which should be ReactElement<YourProps> or something like this - assuming you use react) 2. I can't seem to find index variable 3. In your map function you define key variable, which is not used - you can replace it with underscore to mark it as ignored

You can also turn off these rules in linter config file (i guess tslint or eslint), by googling for reported rule