From 982c7529e1d45f7e7690328c37728390528f0f66 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Wed, 18 Apr 2018 09:58:38 -0400 Subject: [PATCH] No message --- src/Bookshelf.js | 63 ++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/src/Bookshelf.js b/src/Bookshelf.js index ad36b40..2099434 100644 --- a/src/Bookshelf.js +++ b/src/Bookshelf.js @@ -4,11 +4,11 @@ class Bookshelf extends Component { render() { const books = this.props.books - +/* console.log(books.filter(function(book){ return book.shelf === "currentlyReading" })) - +*/ return (
@@ -21,42 +21,31 @@ class Bookshelf extends Component {

Currently Reading

    -
  1. -
    -
    -
    -
    - + + {books.filter(function(book){ + return book.shelf === "currentlyReading" + }).map((book) => { + return +
  2. +
    +
    +
    +
    + +
    +
    +
    {book.title}
    +
    {book.authors}
    -
-
To Kill a Mockingbird
-
Harper Lee
-
- -
  • -
    -
    -
    -
    - -
    -
    -
    Enders Game
    -
    Orson Scott Card
    -
    -
  • + + })} +