Fixed/updated setState call in app.js

This commit is contained in:
Ken Jannette
2018-04-20 09:31:42 -04:00
parent 6a5795e6b5
commit 1fdfb1e1ae

View File

@@ -40,7 +40,7 @@ class BooksApp extends React.Component {
} }
}); });
this.setState({ this.setState({
books: [...newBook] books: [...this.state.books, newBook]
}); });
} }