Course lesson

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

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

Duration
8 min
Access
Pro
Transcript
Available

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.