No message

This commit is contained in:
Ken Jannette
2018-04-19 10:32:06 -04:00
parent 65609be456
commit fe88734912

View File

@@ -26,9 +26,8 @@ class BooksApp extends React.Component {
const id = e.target.name const id = e.target.name
const shelf = e.target.value const shelf = e.target.value
// console.log(id, shelf) // console.log(id, shelf)
const changeShelf = this.state.books.filter((id, book) => book.id === id) const changeShelf = this.state.books.filter((book, id) => book.id === id)
console.log("changeShelf", changeShelf) console.log("changeShelf: ", changeShelf)
} }
render() { render() {