No message

This commit is contained in:
Ken Jannette
2018-04-17 19:14:11 -04:00
parent 2f1d1c2ab6
commit 39dbe0249e
2 changed files with 3 additions and 3 deletions

View File

@@ -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={() => (

View File

@@ -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">