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
    -
    -
  • + + })} +