You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
398 B
22 lines
398 B
1 year ago
|
import React from "react";
|
||
|
|
||
|
import { SimpleBook } from "../lib/books";
|
||
|
|
||
|
export default function List(props: Props) {
|
||
|
return (
|
||
|
<ul>
|
||
|
{props.books.map((book, idx) => {
|
||
|
return (
|
||
|
<li key={`${idx}_${book.id}`}>
|
||
|
{book.id}; {book.title}; {book.authors}; {book.isbn}
|
||
|
</li>
|
||
|
);
|
||
|
})}
|
||
|
</ul>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
interface Props {
|
||
|
books: SimpleBook[];
|
||
|
}
|