-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Advanced React] Components as props - Add flexibility #74
Labels
Comments
View From Performance Perspective
Solution: https://react.dev/reference/react/cloneElement#alternatives <List
items={products}
renderItem={(product, isHighlighted) =>
<Row
key={product.id}
title={product.title}
isHighlighted={isHighlighted}
/>
}
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component as Props
This article is part of an advanced React series tutorials.
Trade off: Having flexibility but too flexible
Major Content
The text was updated successfully, but these errors were encountered: