📜  在反应列表中使用 shortid - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:11.393000             🧑  作者: Mango

代码示例1
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()
  }
];