Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Extract Reusable React Components with an As Prop, Render Props, and React.Fragment

    reactReact
    ^0.0.0-experimental-b53ea6ca0

    React is about re-useable components.
    Often we put to many opinions into our components and diminish that re-useability.

    React.Fragment, an as component prop, a renderItem render prop, JSX spread attributes, and object default values are tools you can use to make truly re-useable list components.