Convert a Render Props Component using a Custom React Hook

Elijah Manor
InstructorElijah Manor

Share this video with your friends

Send Tweet

Render Props is a popular pattern in React, but sometimes the nesting of Components can get quite deep. Thankfully, React Hooks can help provide an alternate way to structure your code for reuse. In this lesson, we will take an existing Render Props Component and convert it to use a hooks instead.

Alexander Myshov
Alexander Myshov
~ a year ago

Hey Elijah! Thanks for the course. There is issue with example it doesn't work as shown in the video. To fix it put word-break: break-all; inside Item element in Styled.js.