Using the id function in React

We can use our function like this when declaring an array of objects:

jsxconst prods = [
  {id: id(), name: 'product1', cost: 100},
  {id: id(), name: 'product2', cost: 200},
  {id: id(), name: 'product3', cost: 300},
];
Задание 1

Make an array of objects with users, generating id for them using our function.