Refactor React Code - Map Through API Data and Reuse Functional Components - PART 2

preview_player
Показать описание
Hi! I had a few people suggest that we break down the "Featured" component and pass through data to a component and then map through those components.

- Create CoinCard Component
- Pass Props Down to CoinCard
- Take Props & Display On Page

Download the code:

Build the Original Project

☕ Buy me a Coffee ☕

Instagram 💪

🔥 My Coding Equipment 🔥
Рекомендации по теме
Комментарии
Автор

Thanks for video. With React v18.0 must put return <CoinCard key={data.id} data={data}/>

gorandamnjanovic
welcome to shbcf.ru