fix no key on mapped react elements

This commit is contained in:
2026-03-07 12:21:46 -06:00
parent 1a5b5a336f
commit 1507fdb9eb
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ export function Stars() {
return positions;
}, []);
return positions.map(coord => <mesh position={coord}>
return positions.map((coord, i) => <mesh key={i} position={coord}>
<sphereGeometry args={[.1]} />
<meshBasicMaterial />
</mesh>