Add titles
This commit is contained in:
parent
07813f7f10
commit
9b5532469f
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
|
||||
import { SimpleBook } from "../lib/books";
|
||||
|
||||
export default function Detail(props: Props) {
|
||||
export default function List(props: Props) {
|
||||
return (
|
||||
<ul>
|
||||
{props.books.map((book, idx) => {
|
||||
|
|
|
@ -7,7 +7,9 @@ import { DetailedBook, SimpleBook, getBook, getAllBooks } from "../lib/books";
|
|||
export default function Playground(props: Props) {
|
||||
return (
|
||||
<div>
|
||||
<h1>Detail</h1>
|
||||
<Detail book={props.book} />
|
||||
<h1>List</h1>
|
||||
<List books={props.books} />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue