question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unique "key" prop is missing in menu item

See original GitHub issue

Description

When using the Menu from ‘fundamental-react/Menu’; Receive error in the console.

react_devtools_backend.js:6 Warning: Each child in a list should have a unique "key" prop. Check the render method of Menu.Item. See https://fb.me/react-warning-keys for more information. in span (created by Menu.Item) in Menu.Item in ul (created by Menu.List) in Menu.List in nav (created by Menu) in Menu

Screen Shot 2020-05-05 at 15 13 48

Versions

fundamental-react:


NOTE: Where applicable, please include uncropped screen captures.

DISCLAIMER: After triaging an issue, the fundamental-react team will see if it can be reproduced or confirmed. If more information is needed, the fundamental-react team will contact the author. Any issues awaiting responses from the author for more than 7 days will be closed. The author can re-open the issue at a later time if they can present the requested information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jbadancommented, May 5, 2020

Oh ok thank you! That should just be a documentation site error, we’ve rebuilt the docs recently (yesterday! 😆 ) so that is resolved by https://github.com/SAP/fundamental-react/pull/978 and will be populated to sap.github.io/fundamental-react on the 0.10.0 release

Feel free to reopen if you don’t agree!

0reactions
jbadancommented, Oct 19, 2020

Oh ok, I see. It’s coming from https://github.com/SAP/fundamental-react/blob/master/src/Menu/_MenuItem.js#L80, do you mind opening a new issue about this? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does this warning keep appearing when there is already ...
keeps appearing when there is already a key prop on the element? I'm using an NPM package called react-horizontal-scrolling-menu and in the ...
Read more >
Warning: Each Child in a List Should Have a Unique 'key' Prop
When creating a list in the UI from an array with JSX, you should add a key prop to each child and to...
Read more >
How to Fix 'Each child should have a unique key prop' - Webtips
The "Each child in a list should have a unique "key" prop." warning happens in React when you create a list of elements...
Read more >
[SOLVED] Each child in a list should have a unique "key" prop ...
[SOLVED] Each child in a list should have a unique " key " prop, Missing "key" prop React/Next.js. 669 views 7 months ago....
Read more >
My most frequent React errors and how you fix them
When we do this without adding a key prop React will complain that each element is missing a key . Essentially it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found