Array.prototype.map() expects a value to be returned at the end of arrow function array-callback-return react code example
Example: Array.prototype.map() expects a return value from arrow function array-callback-return
Use forEach() instead of map()