No message
This commit is contained in:
@@ -26,7 +26,7 @@ class BooksApp extends React.Component {
|
||||
<div className="app">
|
||||
|
||||
<Route exact path='/' render={() => (
|
||||
<Bookshelf state={this.state.books}/>
|
||||
<Bookshelf books={this.state.books}/>
|
||||
)}/>
|
||||
|
||||
<Route path='/search' render={() => (
|
||||
|
||||
@@ -3,9 +3,9 @@ import React, { Component } from 'react';
|
||||
class Bookshelf extends Component {
|
||||
|
||||
render() {
|
||||
const books = this.props
|
||||
const books = this.props.books
|
||||
|
||||
console.log(books)
|
||||
console.log(books[1])
|
||||
|
||||
return (
|
||||
<div className="list-books">
|
||||
|
||||
Reference in New Issue
Block a user