Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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()
  }
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shortid #react #lists
ADD COMMENT
Topic
Name
3+4 =