First I’d check if your data already has any unique field that you can use.
Usually your data comes from a backend and might already have an
_id field, the index the database gave to that document.
Otherwise, you could
npm install uuid and use that to create unique ids for each item.