How would I add a key to a mapped variable statement like below?
const limit = Math.max(...props.data.map(x => x.count), 0);
I'm getting an error in React stating "Each child in a list should have a unique "key" prop." I know how to add a key to an HTML object, but I'm not sure how to do it in this case.