Convert a Render Props Component using a Custom React Hook

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
~ 5 years 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.