Add titles
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Jared He 2022-03-16 20:30:49 -04:00
parent 07813f7f10
commit 9b5532469f
2 changed files with 3 additions and 1 deletions

View File

@ -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) => {

View File

@ -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>
);