+ {cryptoItems.map((crypto, index) => (
+
+ {crypto.ticker}
+ {crypto.price && (
+
+ $
+ {crypto.price.toLocaleString(undefined, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ })}
+
+ )}
+ {crypto.priceChangePercentage24h !== undefined && (
+ = 0 ? "positive" : "negative"}`}
+ >
+ {crypto.priceChangePercentage24h >= 0 ? "+" : ""}
+ {crypto.priceChangePercentage24h.toFixed(2)}%
+
+ )}
+
+ ))}
+