@@ -19,19 +17,32 @@ class Bookshelf extends Component {
Currently Reading
-
- {books.filter(function(book){
- return book.shelf === "currentlyReading"
- }).map((book) => (
-
+ {books
+ .filter(function (book) {
+ return book.shelf === "currentlyReading";
+ })
+ .map((book) => (
-
-
+
-
- ))}
-
+ ))}
@@ -51,31 +61,43 @@ class Bookshelf extends Component {
Want to Read
-
- {books.filter(function(book){
- return book.shelf === "wantToRead"
- }).map((book) => (
-
- -
-
-
-
-
-
-
-
-
-
-
-
+ {books
+ .filter(function (book) {
+ return book.shelf === "wantToRead";
+ })
+ .map((book) => (
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{book.title}
+
{book.authors}
- {book.title}
- {book.authors}
-
-
- ))}
-
+
+ ))}
@@ -83,39 +105,51 @@ class Bookshelf extends Component {
Read
-
- {books.filter(function(book){
- return book.shelf === "read"
- }).map((book) => (
-
- -
-
-
-
-
-
-
-
-
-
-
-
+ {books
+ .filter(function (book) {
+ return book.shelf === "read";
+ })
+ .map((book) => (
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{book.title}
+
{book.authors}
- {book.title}
- {book.authors}
-
-
- ))}
-
+
+ ))}
- )
+ );
}
}
-export default Bookshelf
+export default Bookshelf;