[React] map() vs forEach(): Array.prototype.map() expects a return value from arrow function.
·
💻 Study/웹
WARNING in [eslint]src/components/views/MainPage/index.js Line 241:24: Array.prototype.map() expects a return value from arrow function.The error you're seeing, Array.prototype.map() expects a return value from arrow function, occurs because the map function is used incorrectly. The map function expects a return value from the arrow function used within it. If you don't need to transform the ..