diff --git a/src/App.js b/src/App.js index 7996303501..1b1e9e3001 100644 --- a/src/App.js +++ b/src/App.js @@ -12,7 +12,9 @@ class BooksApp extends React.Component { } updateBooks = () => { - BooksAPI.getAll().then(books => this.setState({ books })) + BooksAPI + .getAll() + .then(books => this.setState({ books })) } moveBook = (book, shelf) => { @@ -60,38 +62,36 @@ class BooksApp extends React.Component { } componentDidMount() { - this.updateBooks(); + this.updateBooks() } - render() { - return ( -