Skip to content
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

Reusability #21

Open
trentgoing opened this issue Jul 10, 2020 · 0 comments
Open

Reusability #21

trentgoing opened this issue Jul 10, 2020 · 0 comments

Comments

@trentgoing
Copy link

<Carousel view="relatedProducts" list={relatedProductList} />
</div>
<div className="yourOutfit-container">
<h5 className="relatedItemsTitle">YOUR OUTFIT</h5>
<Carousel
view="yourOutfit"
list={outfitList}
alterList={setOutfitList}
currentProductData={overviewOutfitData}
/>

Nice reusability!

As a challenge: How could you continue to refactor this so not only can you pass different lists in and still use the carousel, but also allow the carousel to accept different content on the cards? In other words, if you wanted to make your carousel component available for anyone to use on any project how could you make it even more flexible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant