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

W2 assignment #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rama-website
Copy link

No description provided.

@tlorent tlorent self-assigned this Dec 21, 2023
Copy link

@tlorent tlorent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rama-website I believe the code looks good 👍 But I have one small comment and I also can't check the deployed version 😢 Can you maybe put it online again?

Screenshot 2024-01-11 at 11 07 07

<h2>Categories</h2>
<ul>
{categories.map(category => (
<li key={category} onClick={() => handleCategoryClick(category)}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good that you are adding a key but there is a better value than category 🙂 Because the category is not unique among siblings, all jewelry have the 'jewelry' category. Perhaps use the index or a specific property of category that makes it unique?

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