From ccf6ec5a082a5d02995a7180d266ff9d82bddb20 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Mon, 16 Apr 2018 20:40:06 -0400 Subject: [PATCH] Passed state to bookshelf component --- src/App.js | 4 ++-- src/Bookshelf.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index f1ba456..d87b19e 100755 --- a/src/App.js +++ b/src/App.js @@ -14,7 +14,7 @@ class BooksApp extends React.Component { componentDidMount() { getAll().then((books) => { - console.log(books) + // console.log(books) this.setState({ books }) }) } @@ -26,7 +26,7 @@ class BooksApp extends React.Component {
( - + )}/> ( diff --git a/src/Bookshelf.js b/src/Bookshelf.js index 8ccd523..217153f 100644 --- a/src/Bookshelf.js +++ b/src/Bookshelf.js @@ -1,7 +1,9 @@ import React, { Component } from 'react'; class Bookshelf extends Component { + render() { + console.log('PROPS', this.props) return (