diff --git a/src/App.js b/src/App.js index 1b0a97a..cbd1225 100755 --- a/src/App.js +++ b/src/App.js @@ -18,6 +18,11 @@ class BooksApp extends React.Component { }) } + onSelectChange = (e) => { + const shelf = e.target.value + console.log(shelf) + } + render() { return ( @@ -25,7 +30,10 @@ class BooksApp extends React.Component {
( - + )}/> ( diff --git a/src/Bookshelf.js b/src/Bookshelf.js index 070522d..82d43dd 100644 --- a/src/Bookshelf.js +++ b/src/Bookshelf.js @@ -2,13 +2,9 @@ import React, { Component } from 'react'; class Bookshelf extends Component { -onSelectChange = (e) => { - const shelf = e.target.value - console.log(shelf) -} - render() { const books = this.props.books + const onSelect = this.props.onSelect // console.log(books) @@ -34,7 +30,7 @@ onSelectChange = (e) => {
- @@ -66,7 +62,7 @@ onSelectChange = (e) => {
- @@ -98,7 +94,7 @@ onSelectChange = (e) => {
-