DEV Community

Discussion on: The amazing Render props pattern for React.js — lifecycle begone!

Collapse
 
nickytonline profile image
Nick Taylor

Although I understand higher-order components (HOC) and have used them (mainly Redux), I always found them difficult to read and there is also a risk of overwriting props on the component being wrapped in the HOC.

Render props communicate better what's being used/available as props. And it separates functionality from UI potentially. A great example of this is Kent C. Dodds' Downshift.

Looking forward to your next post!