'got this error when I try to map the props from my App.js to my Coins.jsx component (react) [closed]

got this error when I try to map the props from my App.js to my Coins.jsx component (react)got this error when I
Solution 1:[1]
You you map over coins you get each coin so I've renamed coins to coin. Here is the concise version of what you're doing:
props.coins.map(coin => <CoinItem coins={coin}/>)
The issue is that you're using curly braces instead of parentheses.
props.coins.map(coin => {
return ( // <--- paren not curly
<CoinItem coins={coin}/>
)
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dave |
