I'm having issues adding a key to my list. When I use index I get the error: "Each child in a list should have a unique "key" prop.".
const selectPfp = pfps?.map((e: string, i:number) => {
return (
<>
<PfpOption
key={i}
active={selectedPFP && selectedPFP === e}
src={e}
onClick={() => {
setSelectedPFP(pfps[i]);
console.log("clicked");
}}
/>
</>
);
})