There's a faster version of egghead. Click here to try it.
1×
Become a member
to unlock all features
Autoplay

    Use Render Props with React

    reactReact
    ^16.3.2

    In this lesson, we'll take a step back and re-examine the problem of sharing Component logic by iterating our way to arrive at a new pattern called render props. A render prop is a function that renders JSX based on state and helper arguments. This pattern is the most flexible way to share component logic while giving complete UI flexibility. It's a remarkably simple and powerful pattern.