mirror of
https://github.com/adiguno/hello-nemesis.git
synced 2026-07-22 05:37:31 +00:00
make unique key prop
This commit is contained in:
parent
d18f41a1c6
commit
d4c5921266
1 changed files with 3 additions and 5 deletions
|
|
@ -11,11 +11,9 @@ export const NemesisRightReactView = ({ contents }: ExampleReactViewProps) => {
|
|||
<h1>Hello My Nemesis</h1>
|
||||
{contents.map((content, index) => {
|
||||
return (
|
||||
<>
|
||||
<div key={index}>
|
||||
<p>{content}</p>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue