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