-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The NavigationMenuLink component inside a mapped array is missing a required key prop, causing React/ESLint errors. The key prop is currently placed on the NavigationMenuLink component but should be on the parent
Current code:
<li>
<NavigationMenuLink key={component.title} asChild>
Expected fix:
```{components.map((component) => (
<li key={component.title}>
<NavigationMenuLink asChild>
### Affected component/components
/apps/www/registry/new-york/v0/sidebar-16.tsx
### How to reproduce
Navigate to /apps/www/registry/new-york/v0/sidebar-16.tsx
Look at line 362 in the components mapping
Run ESLint or check console for react/jsx-key errors
The error appears: "Missing 'key' prop for element in iterator"
### Codesandbox/StackBlitz link
_No response_
### Logs
```bash
Missing "key" prop for element in iterator
System Info
Ubuntu 25.xx, Brave browser
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working