FigueiredoFelipe / netflix-clone

This repository is a showcase of my experience as a front-end developer, featuring a Netflix clone created with modern web technologies. Recreates a Netflix's sleek and user-friendly interface.
https://netflix-clone-by-ff.netlify.app
0 stars 0 forks source link

abstract Movie ITem #4

Open jphilipstevens opened 1 year ago

jphilipstevens commented 1 year ago

https://github.com/FigueiredoFelipe/netflix-clone/blob/fd6f38f3afcaf131b18d0a1097db996b2f23dc3b/src/components/MovieRow/MovieRow.js#L11

I would make a component that takes in the item to render vs building the structure in the map function

{items.results.length > 0 &&
            items.results.map((item, key) => (
              <MovieItem key={key} item={item} />
            ))}