client/src/pages/Saved.js
// Loads all books and sets them to books
Loads all books and sets them to books
Loads all books and sets them to books
function loadBooks() {
    API.getBooks()
      .then(res => setBooks(res.data)
      )
      .catch(err => console.log(err));
  }
function loadBooks ( ) { API . getBooks ( ) . then ( res => setBooks ( res . data ) ) . catch ( err => console . log ( err ) ) ; }
Loads all books and sets them to books
Loads all books and sets them to books