From 1fdfb1e1aedad298913ac0ee5d5f179ef4a52be1 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Fri, 20 Apr 2018 09:31:42 -0400 Subject: [PATCH] Fixed/updated setState call in app.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 675590c..816dac7 100755 --- a/src/App.js +++ b/src/App.js @@ -40,7 +40,7 @@ class BooksApp extends React.Component { } }); this.setState({ - books: [...newBook] + books: [...this.state.books, newBook] }); }