using shortid in react lists code example
Example: using shortid in react lists
import shortid from "shortid";
export const NavArray = [
{
to: "/Women",
text: "1",
id: shortid.generate()
},
{
to: "/Women",
text: "2",
id: shortid.generate()
},
{
to: "/Women",
text: "3",
id: shortid.generate()
},
{
to: "/Women",
text: "4",
id: shortid.generate()
}
];