Update array key
This commit is contained in:
parent
5d98b8ef8e
commit
b4e216c0be
|
@ -7,7 +7,7 @@ export default function Home(props: Props) {
|
|||
<ul>
|
||||
{props.books.map((book, idx) => {
|
||||
return (
|
||||
<li key={`${idx}_${book.isbn ?? ""}`}>
|
||||
<li key={`${idx}_${book.id}`}>
|
||||
{book.id}; {book.title}; {book.authors}; {book.isbn}
|
||||
</li>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue