Menggunakan Daftar Shortid dalam React
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()
}
];
Ugly Unicorn