Fixed/updated setState call in app.js
This commit is contained in:
@@ -40,7 +40,7 @@ class BooksApp extends React.Component {
|
||||
}
|
||||
});
|
||||
this.setState({
|
||||
books: [...newBook]
|
||||
books: [...this.state.books, newBook]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user