Skip to content

Unique Key Warning. #17

@baratdev

Description

@baratdev

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",
},
],
},
]}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions