My prop is arrays: [[], [], []]
with each inner array containing objects with different values. I'm mapping over the array, then passing the inner arrays to another component like so (really dumbed down example),
{arrays.map(values => <div key={???}><InnerComponent values={values} /></div>)}
I'm getting the warning about a unique key, but I can't think of a great way to derive a key other than stringify
, which seems really heavy-handed. The user can add/remove items, so index isn't a good solution.