DEV Community

Discussion on: Why I stopped spreading props on React Components

Collapse
 
aurelio profile image
Aurelio

Hi Arber, thanks for chiming in! Just to clarify if I'm understanding correctly, do you mean you also explicitly list all props for Higher Order Components or for everything except HOCs? Interested to see if I got your opinion!

Collapse
 
arberbr profile image
Arber Braja

HOC is one of the rare cases when im not explicit what i pass down and i use {...props}, almost everywhere else i like to specify what im passing where.