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