diff --git a/src/App.js b/src/App.js index 458da01..f1ba456 100755 --- a/src/App.js +++ b/src/App.js @@ -8,10 +8,15 @@ import './App.css' class BooksApp extends React.Component { + state = { + books: [] + } + componentDidMount() { - getAll().then((books) => - console.log(books) - ) + getAll().then((books) => { + console.log(books) + this.setState({ books }) + }) } render() {