Updated onSelectChange method

This commit is contained in:
Ken Jannette
2018-04-18 16:27:33 -04:00
parent 3e7f683f5c
commit 420ebc982b

View File

@@ -26,8 +26,10 @@ class BooksApp extends React.Component {
const shelf = e.target.value
console.log(id, shelf)
this.setState((prevState) => {
prevState.filter(name === book.id)
this.setState((prevState, id) => {
prevState.filter(function(id == book.id) {
})
})
}