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

Feedback on components structure #1

Open jphilipstevens opened 1 year ago

jphilipstevens commented 1 year ago

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

I want to give some feedback here

One thing I like to do is hide html inside a named component dedicated to what it renders.

So in this case I would put this h2 inside a component called MovieTitle and pass in a prop called title.

Like this

<MovieTitle title={title} />
FigueiredoFelipe commented 1 year ago

image

FigueiredoFelipe commented 1 year ago

image