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

Unique Key Warning. #17

Open
baratdev opened this issue Aug 11, 2021 · 0 comments
Open

Unique Key Warning. #17

baratdev opened this issue Aug 11, 2021 · 0 comments

Comments

@baratdev
Copy link

index.js:1 Warning: Each child in a list should have a unique "key" prop.

how i can resolve this issue where i have to add unique key, I'm pasting my code here please guide me.

<Navigation
activeItemId={location.pathname}
onSelect={({ itemId }) => {
history.push(itemId);
}}
items={[
{
title: "Dashboard",
itemId: "/",
elemBefore: () => ,
},
{
title: "Management",
//itemId: "/management",
elemBefore: () => ,
subNav: [
{
title: "Projects",
itemId: "/about",
elemBefore: () => ,
},
{
title: "Members",
itemId: "/",
elemBefore: () => ,
},
],
},
{
title: "Another Item",
itemId: "/another",
subNav: [
{
title: "Teams",
itemId: "/management/teams",
},
],
},
]}
/>

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