Open jphilipstevens opened 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} /> ))}
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